diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2023-02-08 01:29:02 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-14 22:23:08 +0300 |
commit | f0ac1598712ff0f7b985d58546449e232487ee0e (patch) | |
tree | 6e3566fa53b5b54c17cafb3441a47e2a08a2024e /drivers/md | |
parent | 774f13ac2b567207f04eb34d25188f5daec57f9e (diff) | |
download | linux-f0ac1598712ff0f7b985d58546449e232487ee0e.tar.xz |
dm clone: prefer kvmalloc_array()
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-clone-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-clone-target.c b/drivers/md/dm-clone-target.c index 29e0b85eeaf0..f38a27604c7a 100644 --- 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; |