Commit 1a1a20cc authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: serial/tx3912: remove unneeded verify_area calls

From: Domen Puncer <domen@coderock.org>
parent 9fe9ad42
...@@ -613,9 +613,7 @@ static int rs_ioctl (struct tty_struct * tty, struct file * filp, ...@@ -613,9 +613,7 @@ static int rs_ioctl (struct tty_struct * tty, struct file * filp,
(unsigned int *) arg); (unsigned int *) arg);
break; break;
case TIOCSSOFTCAR: case TIOCSSOFTCAR:
if ((rc = verify_area(VERIFY_READ, (void *) arg, if ((rc = get_user(ival, (unsigned int *) arg)) == 0) {
sizeof(int))) == 0) {
get_user(ival, (unsigned int *) arg);
tty->termios->c_cflag = tty->termios->c_cflag =
(tty->termios->c_cflag & ~CLOCAL) | (tty->termios->c_cflag & ~CLOCAL) |
(ival ? CLOCAL : 0); (ival ? CLOCAL : 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment