From: Harvey Harrison Date: Wed, 30 Apr 2008 07:53:50 +0000 (-0700) Subject: char: esp.c: fix possible double-unlock X-Git-Tag: v2.6.26-rc1~211 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3ceb6562bfbe8f27fa32d1e24eea0e2d4de0347;p=pandora-kernel.git char: esp.c: fix possible double-unlock Hitting either of the break statements in the while loop would cause a double-unlock of info->lock. [Jiri Slaby suggested simply returning is safe here, rather than a goto] Noticed by sparse: drivers/char/esp.c:2042:2: warning: context imbalance in 'rs_wait_until_sent' - unexpected unlock Signed-off-by: Harvey Harrison Cc: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed