diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/n_tty.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/n_tty.c b/drivers/char/n_tty.c index e96a00fe1389..2bdb0144a22e 100644 --- a/drivers/char/n_tty.c +++ b/drivers/char/n_tty.c | |||
@@ -1151,7 +1151,6 @@ static int copy_from_read_buf(struct tty_struct *tty, | |||
1151 | n = min(*nr, n); | 1151 | n = min(*nr, n); |
1152 | spin_unlock_irqrestore(&tty->read_lock, flags); | 1152 | spin_unlock_irqrestore(&tty->read_lock, flags); |
1153 | if (n) { | 1153 | if (n) { |
1154 | mb(); | ||
1155 | retval = copy_to_user(*b, &tty->read_buf[tty->read_tail], n); | 1154 | retval = copy_to_user(*b, &tty->read_buf[tty->read_tail], n); |
1156 | n -= retval; | 1155 | n -= retval; |
1157 | spin_lock_irqsave(&tty->read_lock, flags); | 1156 | spin_lock_irqsave(&tty->read_lock, flags); |