From: Julia Lawall Date: Mon, 29 Mar 2010 05:33:34 +0000 (+0000) Subject: powerpc/vio: Add missing unlock in error path X-Git-Tag: v2.6.35-rc1~450^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6d8c8bb1d360272d795927d39f3d2c5934e77d9;p=pandora-kernel.git powerpc/vio: Add missing unlock in error path Add an unlock before exiting 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 Acked-by: Stephen Rothwell Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed