[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1454134058-16466-4-git-send-email-john.stultz@linaro.org>
Date: Fri, 29 Jan 2016 22:07:32 -0800
From: John Stultz <john.stultz@...aro.org>
To: lkml <linux-kernel@...r.kernel.org>
Cc: San Mehat <san@...gle.com>,
Android Kernel Team <kernel-team@...roid.com>,
Greg KH <gregkh@...uxfoundation.org>,
John Stultz <john.stultz@...aro.org>
Subject: [PATCH 3/9] staging: lowmemorykiller: Fix task_struct leak
From: San Mehat <san@...gle.com>
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.
Cc: Android Kernel Team <kernel-team@...roid.com>
Cc: Greg KH <gregkh@...uxfoundation.org>
Signed-off-by: San Mehat <san@...gle.com>
[jstultz: Commit subject tweak]
Signed-off-by: John Stultz <john.stultz@...aro.org>
---
drivers/staging/android/lowmemorykiller.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c
index 8b5a4a8..806643d 100644
--- a/drivers/staging/android/lowmemorykiller.c
+++ b/drivers/staging/android/lowmemorykiller.c
@@ -40,7 +40,6 @@
#include <linux/sched.h>
#include <linux/swap.h>
#include <linux/rcupdate.h>
-#include <linux/profile.h>
#include <linux/notifier.h>
static u32 lowmem_debug_level = 1;
--
1.9.1
Powered by blists - more mailing lists