From: Will Deacon Date: Tue, 13 Dec 2011 19:40:45 +0000 (+0100) Subject: perf events: Fix ring_buffer_wakeup() brown paperbag bug X-Git-Tag: v3.2-rc7~45^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44b7f4b98d8877e2a4427f2a2f2e42ae8227a58f;p=pandora-kernel.git perf events: Fix ring_buffer_wakeup() brown paperbag bug Commit 10c6db11 ("perf: Fix loss of notification with multi-event") seems to unconditionally dereference event->rb in the wakeup handler, this is wrong, there might not be a buffer attached. Signed-off-by: Will Deacon Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20111213152651.GP20297@mudshark.cambridge.arm.com [ minor edits ] Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed