Write a check which suggests better APIs for allocation.
commitd3c61f582c8c8c77b4e44a3bebfe0bef06db37d6
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Fri, 18 Mar 2022 14:18:38 +0000 (18 07:18 -0700)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Mar 2022 14:41:36 +0000 (18 17:41 +0300)
tree2101c5166bd7f0c288645e7f2b11bc51935d3c0d
parentf7b31b407c1a3f34df25e0162223943f827553dd
Write a check which suggests better APIs for allocation.

kvcalloc = kvmalloc_array + __GFP_ZERO
kcalloc = kmalloc_array + __GFP_ZERO

Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_kvmalloc_array_zero.c [new file with mode: 0644]