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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 16 Jan 2013 21:45:02 +0000 (16:45 -0500)
commit2d393c3a6ac2e1a926ba67c3d8aa3a3479c2ba73
tree4b66ac72dc3797e89e06b4eaa3d20cc27a3d7ae5
parent99a99c44ad2eacb1ff6faa603176ccdb11088696
oprofile: Free potentially owned tasks in case of errors

commit 6ac6519b93065625119a347be1cbcc1b89edb773 upstream.

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.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/oprofile/buffer_sync.c