Harvey Harrison d3ceb6562b 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 <harvey.harrison@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-30 08:29:44 -07:00
..
2008-04-21 22:38:45 +00:00
2008-04-29 08:06:27 -07:00
2008-04-29 13:46:54 -07:00
2008-04-29 08:06:27 -07:00
2008-04-30 08:29:40 -07:00
2008-04-29 08:06:18 -07:00
2008-04-23 21:25:35 -04:00
2008-04-29 08:06:28 -07:00
2008-04-24 23:57:33 +02:00
2008-04-24 23:57:33 +02:00