projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4624fb9
)
staging: android: lowmemorykiller: Fix task_struct leak
author
San Mehat
<san@google.com>
Thu, 6 May 2010 22:40:07 +0000
(15:40 -0700)
committer
Arve Hjønnevåg
<arve@android.com>
Mon, 1 Jul 2013 20:40:29 +0000
(13:40 -0700)
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
patch
|
blob
|
history
diff --git
a/drivers/staging/android/lowmemorykiller.c
b/drivers/staging/android/lowmemorykiller.c
index fe74494868ef33037e7e43602471b51780f6c37d..774e8eeeddf609c3b55ccdc5d9acf033b9ad8bf2 100644
(file)
--- a/
drivers/staging/android/lowmemorykiller.c
+++ b/
drivers/staging/android/lowmemorykiller.c
@@
-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;