staging: android: lowmemorykiller: Fix task_struct leak
authorSan Mehat <san@google.com>
Thu, 6 May 2010 22:40:07 +0000 (15:40 -0700)
committerSan Mehat <san@google.com>
Thu, 6 May 2010 22:51:08 +0000 (15:51 -0700)
commit896c969afc251e0525e28633c57e4e0a97229dd6
tree87644ed15a47b1ca56e6bbdd3825850f3e14f3e7
parent9e6cb2f4dbe36af72558f60f418cc03df0173628
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