Skip to content
Snippets Groups Projects
Commit 67418b78 authored by San Mehat's avatar San Mehat Committed by Arve Hjønnevåg
Browse files

staging: android: lowmemorykiller: Fix task_struct leak


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: default avatarSan Mehat <san@google.com>
parent 4624fb9d
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/swap.h> #include <linux/swap.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
#include <linux/profile.h>
#include <linux/notifier.h> #include <linux/notifier.h>
static uint32_t lowmem_debug_level = 1; static uint32_t lowmem_debug_level = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment