tty: Drop the lock_kernel in the private ioctl hook
We don't need the BKL here any more so it can go. In a couple of spots the driver requirements are not clear so push the lock down into the driver. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -721,10 +721,10 @@ static void mct_u232_break_ctl(struct tty_struct *tty, int break_state)
|
||||
|
||||
spin_lock_irqsave(&priv->lock, flags);
|
||||
lcr = priv->last_lcr;
|
||||
spin_unlock_irqrestore(&priv->lock, flags);
|
||||
|
||||
if (break_state)
|
||||
lcr |= MCT_U232_SET_BREAK;
|
||||
spin_unlock_irqrestore(&priv->lock, flags);
|
||||
|
||||
mct_u232_set_line_ctrl(serial, lcr);
|
||||
} /* mct_u232_break_ctl */
|
||||
|
||||
Reference in New Issue
Block a user