From: Julia Lawall Date: Wed, 26 May 2010 05:56:48 +0000 (+0000) Subject: net/iucv: Add missing spin_unlock X-Git-Tag: v2.6.35-rc1~24^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a56635a56f2afb3d22d9ce07e8f8d69537416b2d;p=pandora-kernel.git net/iucv: Add missing spin_unlock Add a spin_unlock missing on the error path. There seems like no reason why the lock should continue to be held if the kzalloc fail. 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: David S. Miller --- Reading git-diff-tree failed