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
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
2 matches
Mail list logo