Skip to content

Commit f0ac159

Browse files
mauelshaMike Snitzer
authored andcommitted
dm clone: prefer kvmalloc_array()
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 774f13a commit f0ac159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-clone-target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ static int hash_table_init(struct clone *clone)
580580

581581
sz = 1 << HASH_TABLE_BITS;
582582

583-
clone->ht = kvmalloc(sz * sizeof(struct hash_table_bucket), GFP_KERNEL);
583+
clone->ht = kvmalloc_array(sz, sizeof(struct hash_table_bucket), GFP_KERNEL);
584584
if (!clone->ht)
585585
return -ENOMEM;
586586

0 commit comments

Comments
 (0)