Commit 8e4c6c31 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] janitor: dz: verify_area() removal

From: "Randy.Dunlap" <rddunlap@osdl.org>,
      Domen Puncer <domen@coderock.org>
parent c44ce779
...@@ -986,11 +986,7 @@ static int dz_ioctl(struct tty_struct *tty, struct file *file, ...@@ -986,11 +986,7 @@ static int dz_ioctl(struct tty_struct *tty, struct file *file,
return 0; return 0;
case TIOCGSOFTCAR: case TIOCGSOFTCAR:
error = verify_area (VERIFY_WRITE, (void *)arg, sizeof(long)); return put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long *)arg);
if (error)
return error;
put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long *)arg);
return 0;
case TIOCSSOFTCAR: case TIOCSSOFTCAR:
if (get_user (arg, (unsigned long *)arg)) if (get_user (arg, (unsigned long *)arg))
...@@ -1001,10 +997,6 @@ static int dz_ioctl(struct tty_struct *tty, struct file *file, ...@@ -1001,10 +997,6 @@ static int dz_ioctl(struct tty_struct *tty, struct file *file,
return 0; return 0;
case TIOCGSERIAL: case TIOCGSERIAL:
error = verify_area(VERIFY_WRITE, (void *)arg,
sizeof(struct serial_struct));
if (error)
return error;
return get_serial_info(info, (struct serial_struct *)arg); return get_serial_info(info, (struct serial_struct *)arg);
case TIOCSSERIAL: case TIOCSSERIAL:
......
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