From: Carl Love Date: Mon, 11 Aug 2008 07:25:43 +0000 (+1000) Subject: powerpc/cell/oprofile: Avoid double vfree of profile buffer X-Git-Tag: v2.6.27-rc5~29^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4156d1cd1dc260cca767a6c0636625f05446799;p=pandora-kernel.git 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 Signed-off-by: Arnd Bergmann Acked-by: Robert Richter Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed