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>
Mon, 13 Apr 2015 16:42:56 +0000 (00:42 +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 feafa17..047fcaa 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;