From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 19 Aug 2008 13:53:18 +0200 From: Robert Richter To: Arnd Bergmann Subject: Re: powerpc/cell/oprofile: avoid double free of profile buffer Message-ID: <20080819115317.GD1488@erda.amd.com> References: <1217620879.15667.145.camel@carll-linux-desktop> <18591.30474.127939.243247@cargo.ozlabs.ibm.com> <200808110918.57293.arnd@arndb.de> <200808110925.44243.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <200808110925.44243.arnd@arndb.de> Cc: linux-kernel , linuxppc-dev@ozlabs.org, Paul Mackerras , oprofile-list@lists.sourceforge.net, cel , cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11.08.08 09:25:43, Arnd Bergmann wrote: > From: Carl Love > > 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 > Signed-off-by: Arnd Bergmann Acked-by: Robert Richter -Robert -- Advanced Micro Devices, Inc. Operating System Research Center email: robert.richter@amd.com