From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] s390 (4/7): ctc driver.
Date: Mon, 6 Oct 2003 11:26:00 +0200 [thread overview]
Message-ID: <20031006092600.GE1786@mschwid3.boeblingen.de.ibm.com> (raw)
Kernel Janitors: remove unnecessary calls to verify_area.
diffstat:
drivers/s390/net/ctctty.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff -urN linux-2.6/drivers/s390/net/ctctty.c linux-2.6-s390/drivers/s390/net/ctctty.c
--- linux-2.6/drivers/s390/net/ctctty.c Sun Sep 28 02:50:28 2003
+++ linux-2.6-s390/drivers/s390/net/ctctty.c Mon Oct 6 10:59:26 2003
@@ -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 @@
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 @@
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));
reply other threads:[~2003-10-06 9:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031006092600.GE1786@mschwid3.boeblingen.de.ibm.com \
--to=schwidefsky@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®