diff options
Diffstat (limited to 'drivers/tty/n_hdlc.c')
| -rw-r--r-- | drivers/tty/n_hdlc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/n_hdlc.c b/drivers/tty/n_hdlc.c index 99460af61b77..4164414d4c64 100644 --- a/drivers/tty/n_hdlc.c +++ b/drivers/tty/n_hdlc.c | |||
| @@ -573,7 +573,7 @@ static ssize_t n_hdlc_tty_read(struct tty_struct *tty, struct file *file, | |||
| 573 | return -EIO; | 573 | return -EIO; |
| 574 | 574 | ||
| 575 | /* verify user access to buffer */ | 575 | /* verify user access to buffer */ |
| 576 | if (!access_ok(VERIFY_WRITE, buf, nr)) { | 576 | if (!access_ok(buf, nr)) { |
| 577 | printk(KERN_WARNING "%s(%d) n_hdlc_tty_read() can't verify user " | 577 | printk(KERN_WARNING "%s(%d) n_hdlc_tty_read() can't verify user " |
| 578 | "buffer\n", __FILE__, __LINE__); | 578 | "buffer\n", __FILE__, __LINE__); |
| 579 | return -EFAULT; | 579 | return -EFAULT; |
