From: Vegard Nossum Date: Tue, 18 Nov 2008 18:22:13 +0000 (+0100) Subject: trace: introduce missing mutex_unlock() X-Git-Tag: v2.6.28-rc6~9^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=641d2f63cfe24539e154efa2f932937934c27dde;p=linux-2.6-omap-h63xx.git trace: introduce missing mutex_unlock() Impact: fix tracing buffer mutex leak in case of allocation failure This error was spotted by this semantic patch: http://www.emn.fr/x-info/coccinelle/mut.html It looks correct as far as I can tell. Please review. Signed-off-by: Vegard Nossum Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar --- diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 036456cbb4f..f780e9552f9 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c @@ -617,6 +617,7 @@ int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size) list_del_init(&page->list); free_buffer_page(page); } + mutex_unlock(&buffer->mutex); return -ENOMEM; }