fs/ntfs3: Use kmalloc_array for allocating multiple elements
authorKenneth Lee <klee33@uw.edu>
Fri, 19 Aug 2022 05:51:17 +0000 (22:51 -0700)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 30 Sep 2022 14:39:51 +0000 (17:39 +0300)
commit92f017c4aee6e2bb79593adeacccbea3afe62223
tree0395b4fccb3bda4ad1e37ab0ce54d17d54c1d94c
parent6d5c9e79b726cc473d40e9cb60976dbe8e669624
fs/ntfs3: Use kmalloc_array for allocating multiple elements

Prefer using kmalloc_array(a, b) over kmalloc(a * b) as this
improves semantics since kmalloc is intended for allocating an
array of memory.

Signed-off-by: Kenneth Lee <klee33@uw.edu>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/bitmap.c