diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-30 09:53:50 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 17:29:44 +0200 |
commit | d3ceb6562bfbe8f27fa32d1e24eea0e2d4de0347 (patch) | |
tree | 25a213062b9dd40361984a83f7b2c16a5e5edf8c /drivers/char/rocket.c | |
parent | char: fix sparse shadowed variable warnings in esp.c (diff) | |
download | linux-d3ceb6562bfbe8f27fa32d1e24eea0e2d4de0347.tar.xz linux-d3ceb6562bfbe8f27fa32d1e24eea0e2d4de0347.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions