oprofile: Free potentially owned tasks in case of errors
authorRobert Richter <robert.richter@amd.com>
Thu, 26 May 2011 16:22:54 +0000 (18:22 +0200)
committerRobert Richter <robert.richter@amd.com>
Tue, 31 May 2011 14:33:33 +0000 (16:33 +0200)
commit6ac6519b93065625119a347be1cbcc1b89edb773
tree673965e52a026d00685e36105b45f74086c1f38c
parentcbf74cea070fa1f705de4712e25d9e56ae6543c7
oprofile: Free potentially owned tasks in case of errors

After registering the task free notifier we possibly have tasks in our
dying_tasks list. Free them after unregistering the notifier in case
of an error.

Cc: <stable@kernel.org> # .36+
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/buffer_sync.c