diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-06-04 18:23:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-06-04 18:23:07 -0400 |
commit | bf4282cbcf7f53c23e87fb0cef945591cdc8d631 (patch) | |
tree | ce1844209ec623c1ed661405ffd8f8f37a319aa8 /drivers/char/vt_ioctl.c | |
parent | d7940b04fa441b06b69f05faef43c5fb2156ab72 (diff) | |
parent | 66169ad17d9c67a33608830dd83dcef55c85a756 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
serial: add support for various Titan PCI cards
vt_ioctl: return -EFAULT on copy_from_user errors
serial: altera_uart: Proper section for altera_uart_remove
tty: fix a little bug in scrup, vt.c
altera_uart: Simplify altera_uart_console_putc
altera_uart: Don't take spinlock in already protected functions
TTY/n_gsm: potential double lock
serial: bfin_5xx: fix typo in IER check
serial: bfin_5xx: IRDA is not affected by anomaly 05000230
serial_cs: add and sort IDs for serial and modem cards
msm_serial: fix serial on trout
Diffstat (limited to 'drivers/char/vt_ioctl.c')
-rw-r--r-- | drivers/char/vt_ioctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c index 6aa10284104a..cb19dbc52136 100644 --- a/drivers/char/vt_ioctl.c +++ b/drivers/char/vt_ioctl.c | |||
@@ -1303,7 +1303,9 @@ int vt_ioctl(struct tty_struct *tty, struct file * file, | |||
1303 | if (!perm) | 1303 | if (!perm) |
1304 | goto eperm; | 1304 | goto eperm; |
1305 | ret = copy_from_user(&ui, up, sizeof(struct unimapinit)); | 1305 | ret = copy_from_user(&ui, up, sizeof(struct unimapinit)); |
1306 | if (!ret) | 1306 | if (ret) |
1307 | ret = -EFAULT; | ||
1308 | else | ||
1307 | con_clear_unimap(vc, &ui); | 1309 | con_clear_unimap(vc, &ui); |
1308 | break; | 1310 | break; |
1309 | } | 1311 | } |