OSDN Git Service

staging: android: lowmemorykiller: Fix task_struct leak
authorSan Mehat <san@google.com>
Thu, 6 May 2010 22:40:07 +0000 (15:40 -0700)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 13 Dec 2014 10:39:37 +0000 (18:39 +0800)
As it turns out, the CONFIG_PROFILING interfaces leak a
task struct if the notifier chain returns NOTIFY_OK.. doh.

This patch reworks lowmemkiller to use the new generic task
free notifier chain.

Signed-off-by: San Mehat <san@google.com>
drivers/staging/android/lowmemorykiller.c

index b545d3d..9d6d174 100644 (file)
@@ -39,7 +39,6 @@
 #include <linux/sched.h>
 #include <linux/swap.h>
 #include <linux/rcupdate.h>
-#include <linux/profile.h>
 #include <linux/notifier.h>
 
 static uint32_t lowmem_debug_level = 1;