From: Julia Lawall Date: Mon, 29 Mar 2010 15:37:02 +0000 (+0200) Subject: ring-buffer: Add missing unlock X-Git-Tag: v2.6.34-rc4~77^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=292f60c0c4ab44aa2d589ba03c12e64a3b3c5e38;p=pandora-kernel.git ring-buffer: Add missing unlock In some error handling cases the lock is not unlocked. The return is converted to a goto, to share the unlock at the end of the function. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression E1; identifier f; @@ f (...) { <+... * spin_lock_irq (E1,...); ... when != E1 * return ...; ...+> } // Signed-off-by: Julia Lawall LKML-Reference: Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed