]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] s390 (4/7): ctc driver.
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 6 Oct 2003 00:46:51 +0000 (17:46 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 6 Oct 2003 00:46:51 +0000 (17:46 -0700)
Kernel Janitors: remove unnecessary calls to verify_area.

drivers/s390/net/ctctty.c

index d8bad5ad7e253186b328d8ffa93bbd30df0b4946..659894f2697a8e5ce6028f8523a5ba2d7f80dee0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ctctty.c,v 1.12 2003/06/17 11:36:44 mschwide Exp $
+ * $Id: ctctty.c,v 1.13 2003/09/26 14:48:36 mschwide Exp $
  *
  * CTC / ESCON network driver, tty interface.
  *
@@ -758,7 +758,7 @@ ctc_tty_ioctl(struct tty_struct *tty, struct file *file,
                        printk(KERN_DEBUG "%s%d ioctl TIOCGSOFTCAR\n", CTC_TTY_NAME,
                               info->line);
 #endif
-                       error = verify_area(VERIFY_WRITE, (void *) arg, sizeof(long));
+                       error = put_user(C_CLOCAL(tty) ? 1 : 0, (ulong *) arg);
                        if (error)
                                return error;
                        put_user(C_CLOCAL(tty) ? 1 : 0, (ulong *) arg);
@@ -768,10 +768,9 @@ ctc_tty_ioctl(struct tty_struct *tty, struct file *file,
                        printk(KERN_DEBUG "%s%d ioctl TIOCSSOFTCAR\n", CTC_TTY_NAME,
                               info->line);
 #endif
-                       error = verify_area(VERIFY_READ, (void *) arg, sizeof(long));
+                       error = get_user(arg, (ulong *) arg);
                        if (error)
                                return error;
-                       get_user(arg, (ulong *) arg);
                        tty->termios->c_cflag =
                            ((tty->termios->c_cflag & ~CLOCAL) |
                             (arg ? CLOCAL : 0));