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)
commitcb37435883a970b6bf15fecb893c5df9572fec15
treeb7a96f972bf1aa5c80b13f31c7649549ac96cbf2
parent73c95100495afa172e5e7c68b81dfecd275b0837
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: San Mehat <san@google.com>
drivers/staging/android/lowmemorykiller.c