From: Julia Lawall Date: Tue, 27 Apr 2010 21:05:20 +0000 (-0700) Subject: serial: drivers/serial/pmac_zilog.c: add missing unlock X-Git-Tag: v2.6.34-rc7~37^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c61fae964a5ee04c4e4a01caecaf778c2e26e589;p=pandora-kernel.git serial: drivers/serial/pmac_zilog.c: add missing unlock In an error handling case the lock is not unlocked. 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_irqsave (E1,...); ... when != E1 * return ...; ...+> } // Signed-off-by: Julia Lawall Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed