mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
specialix.c: fix possible double-unlock
Noticed by sparse, trivial to see: drivers/char/specialix.c:2112:3: warning: context imbalance in 'sx_throttle' - unexpected unlock Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c46288b09e
commit
83c7c693ed
1 changed files with 0 additions and 1 deletions
|
@ -2109,7 +2109,6 @@ static void sx_throttle(struct tty_struct * tty)
|
|||
sx_out(bp, CD186x_CAR, port_No(port));
|
||||
spin_unlock_irqrestore(&bp->lock, flags);
|
||||
if (I_IXOFF(tty)) {
|
||||
spin_unlock_irqrestore(&bp->lock, flags);
|
||||
sx_wait_CCR(bp);
|
||||
spin_lock_irqsave(&bp->lock, flags);
|
||||
sx_out(bp, CD186x_CCR, CCR_SSCH2);
|
||||
|
|
Loading…
Reference in a new issue