powerpc/cell/oprofile: Avoid double vfree of profile buffer
authorCarl Love <cel@us.ibm.com>
Mon, 11 Aug 2008 07:25:43 +0000 (17:25 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 26 Aug 2008 00:24:46 +0000 (10:24 +1000)
commitf4156d1cd1dc260cca767a6c0636625f05446799
treef0802db39246d371908a43dc992823feb82fecd8
parent2bb2e1db906e6e139636271d2cf46466d9e84005
powerpc/cell/oprofile: Avoid double vfree of profile buffer

If an error occurs on opcontrol start, the event and per cpu buffers
are released.  If later opcontrol shutdown is called then the free
function will be called again to free buffers that no longer
exist.  This results in a kernel oops.  The following changes
prevent the call to delete buffers that don't exist.

Signed-off-by: Carl Love <carll@us.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/oprofile/cpu_buffer.c
drivers/oprofile/event_buffer.c