summaryrefslogtreecommitdiffstats
path: root/kernel/pid.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-10-03 14:55:18 +0200
committerFrederic Weisbecker <fweisbec@gmail.com>2009-10-05 10:57:41 +0200
commitfe8e5b5a60f8427940d33b205e127aecfb0bca10 (patch)
treed4d18d4a69175f715c9483e0e92ae73f8deda090 /kernel/pid.c
parent8a0382f6fceaf0c6479e582e1054f36333ea3d24 (diff)
downloadop-kernel-dev-fe8e5b5a60f8427940d33b205e127aecfb0bca10.zip
op-kernel-dev-fe8e5b5a60f8427940d33b205e127aecfb0bca10.tar.gz
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 <paulus@samba.org> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'kernel/pid.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud