[PATCHv2 2/2] char: fix possible double-unlock in esp.c

2008-02-22 Thread Harvey Harrison
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

[PATCHv2 2/2] char: fix possible double-unlock in esp.c

2008-02-22 Thread Harvey Harrison
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