powerpc/cell/oprofile: avoid double free of profile buffer

Robert Richter robert.richter at amd.com
Tue Aug 19 21:53:18 EST 2008


On 11.08.08 09:25:43, Arnd Bergmann wrote:
> From: Carl Love <cel at us.ibm.com>
> 
> 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 at us.ibm.com>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>

Acked-by: Robert Richter <robert.richter at amd.com>

-Robert

-- 
Advanced Micro Devices, Inc.
Operating System Research Center
email: robert.richter at amd.com




More information about the Linuxppc-dev mailing list