From: Julia Lawall Date: Wed, 26 May 2010 15:59:11 +0000 (+0200) Subject: Staging: vme: bridges: Add missing unlocks X-Git-Tag: v2.6.36-rc1~520^2~1^2~430 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c0ace54887872ebd99fefdfe85d273295a09426;p=pandora-kernel.git Staging: vme: bridges: Add missing unlocks Add a spin_unlock and mutex_unlock missing on the error path. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression E1; @@ * spin_lock(E1,...); <+... when != E1 if (...) { ... when != E1 * return ...; } ...+> * spin_unlock(E1,...); // Signed-off-by: Julia Lawall Signed-off-by: Martyn Welch Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed