From: Harvey Harrison Date: Tue, 4 Mar 2008 22:28:26 +0000 (-0800) Subject: specialix.c: fix possible double-unlock X-Git-Tag: accepted/tizen/common/20141203.182822~24017 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83c7c693ed3e61535ad6a097ad991a88aafc54b8;p=platform%2Fkernel%2Flinux-arm64.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/specialix.c b/drivers/char/specialix.c index c0e08c7..5ff83df 100644 --- a/drivers/char/specialix.c +++ b/drivers/char/specialix.c @@ -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);