File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 39
39
#include <linux/ctype.h>
40
40
#include <linux/init.h>
41
41
#include <linux/panic_notifier.h>
42
+ #include <linux/kmemleak.h>
42
43
#include <linux/poll.h>
43
44
#include <linux/nmi.h>
44
45
#include <linux/fs.h>
@@ -2339,6 +2340,7 @@ static void free_saved_cmdlines_buffer(struct saved_cmdlines_buffer *s)
2339
2340
int order = get_order (sizeof (* s ) + s -> cmdline_num * TASK_COMM_LEN );
2340
2341
2341
2342
kfree (s -> map_cmdline_to_pid );
2343
+ kmemleak_free (s );
2342
2344
free_pages ((unsigned long )s , order );
2343
2345
}
2344
2346
@@ -2358,6 +2360,7 @@ static struct saved_cmdlines_buffer *allocate_cmdlines_buffer(unsigned int val)
2358
2360
return NULL ;
2359
2361
2360
2362
s = page_address (page );
2363
+ kmemleak_alloc (s , size , 1 , GFP_KERNEL );
2361
2364
memset (s , 0 , sizeof (* s ));
2362
2365
2363
2366
/* Round up to actual allocation */
You can’t perform that action at this time.
0 commit comments