diff options
Diffstat (limited to 'block/blk-zoned.c')
| -rw-r--r-- | block/blk-zoned.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-zoned.c b/block/blk-zoned.c index 846b8844f04a..54ee346ddb5a 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -1804,8 +1804,8 @@ static int disk_alloc_zone_resources(struct gendisk *disk, min(ilog2(pool_size) + 1, BLK_ZONE_WPLUG_MAX_HASH_BITS); disk->zone_wplugs_hash = - kcalloc(disk_zone_wplugs_hash_size(disk), - sizeof(struct hlist_head), GFP_KERNEL); + kzalloc_objs(struct hlist_head, + disk_zone_wplugs_hash_size(disk), GFP_KERNEL); if (!disk->zone_wplugs_hash) return -ENOMEM; |
