smatch icon indicating copy to clipboard operation
smatch copied to clipboard

Refactor and add new functions tested by check_kvmalloc_array_zero()

Open tititiou36 opened this issue 3 years ago • 1 comments

Use a table of searched functions that use __GFP_ZERO and to proposed alternatives. This makes the code easier to expand.

While at it, scan for new functions.

Signed-off-by: Christophe JAILLET [email protected]

tititiou36 avatar May 19 '22 19:05 tititiou36

Hi Dan, this is my first PR for Smatch, so don't hesitate to tell me all I did wrong. I've left function names and files names as is. It is liekely that "check_kvmalloc_array_zero.c" is not the best wording now.

tititiou36 avatar May 19 '22 19:05 tititiou36