projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
774f13a
)
dm clone: prefer kvmalloc_array()
author
Heinz Mauelshagen
<heinzm@redhat.com>
Tue, 7 Feb 2023 22:29:02 +0000
(23:29 +0100)
committer
Mike Snitzer
<snitzer@kernel.org>
Tue, 14 Feb 2023 19:23:08 +0000
(14:23 -0500)
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-clone-target.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-clone-target.c
b/drivers/md/dm-clone-target.c
index 29e0b85eeaf0902d80b55989cd32872db7defd7e..f38a27604c7ab667c1ec9468760dc6d5730ad0cb 100644
(file)
--- a/
drivers/md/dm-clone-target.c
+++ b/
drivers/md/dm-clone-target.c
@@
-580,7
+580,7
@@
static int hash_table_init(struct clone *clone)
sz = 1 << HASH_TABLE_BITS;
- clone->ht = kvmalloc
(sz *
sizeof(struct hash_table_bucket), GFP_KERNEL);
+ clone->ht = kvmalloc
_array(sz,
sizeof(struct hash_table_bucket), GFP_KERNEL);
if (!clone->ht)
return -ENOMEM;