X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=drivers%2Ftty%2Ftty_ioctl.c;h=1445dd39aa6227ab641130ef7344eaba9f113b86;hb=ee0c1a65cf95230d5eb3d9de94fd2ead9a428c67;hp=9c5aebfe7053cbcae1fd65a95f3312509525e8e6;hpb=d86a2fe4dc97cbbad04f5db941d9a1bb82e22b5f;p=linux-2.6-block.git diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index 9c5aebfe7053..1445dd39aa62 100644 --- a/drivers/tty/tty_ioctl.c +++ b/drivers/tty/tty_ioctl.c @@ -1147,16 +1147,12 @@ int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file, spin_unlock_irq(&tty->flow_lock); break; case TCIOFF: - down_read(&tty->termios_rwsem); if (STOP_CHAR(tty) != __DISABLED_CHAR) retval = tty_send_xchar(tty, STOP_CHAR(tty)); - up_read(&tty->termios_rwsem); break; case TCION: - down_read(&tty->termios_rwsem); if (START_CHAR(tty) != __DISABLED_CHAR) retval = tty_send_xchar(tty, START_CHAR(tty)); - up_read(&tty->termios_rwsem); break; default: return -EINVAL;