From: Julia Lawall Date: Thu, 27 May 2010 10:31:51 +0000 (+0200) Subject: arch/x86/kernel: Add missing spin_unlock X-Git-Tag: v2.6.35-rc2~44^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84fe6c19e4a598e8071e3bd1b2c923454eae1268;p=pandora-kernel.git arch/x86/kernel: Add missing spin_unlock Add a spin_unlock missing on the error path. The locks and unlocks are balanced in other functions, so it seems that the same should be the case here. 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,...); // Cc: stable@kernel.org Signed-off-by: Julia Lawall Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed