From: Frederic Weisbecker Date: Sat, 3 Oct 2009 12:55:18 +0000 (+0200) Subject: tracing: Check total refcount before releasing bufs in profile_enable failure X-Git-Tag: v2.6.32-rc4~27^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe8e5b5a60f8427940d33b205e127aecfb0bca10;p=pandora-kernel.git tracing: Check total refcount before releasing bufs in profile_enable failure When we call the profile_enable() callback of an event, we release the shared perf event tracing buffers unconditionnaly in the failure path. This is wrong because there may be other users of these. Then check the total refcount before doing this. Reported-by: Paul Mackerras Signed-off-by: Frederic Weisbecker Cc: Steven Rostedt Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Li Zefan --- Reading git-diff-tree failed