From: Greg KH <greg@kroah.com>
To: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] More USB fixes for 2.5.67
Date: Wed, 16 Apr 2003 23:05:04 -0700 [thread overview]
Message-ID: <1050559504205@kroah.com> (raw)
In-Reply-To: <10505595043780@kroah.com>
ChangeSet 1.1060, 2003/04/14 10:22:36-07:00, greg@kroah.com
[PATCH] USB: kobil_sct fix up errors found by smatch
diff -Nru a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c
--- a/drivers/usb/serial/kobil_sct.c Wed Apr 16 10:49:08 2003
+++ b/drivers/usb/serial/kobil_sct.c Wed Apr 16 10:49:08 2003
@@ -514,7 +514,9 @@
dbg("%s - port %d Error in verify_area", __FUNCTION__, port->number);
return(result);
}
- kernel_termios_to_user_termios((struct termios *)arg, &priv->internal_termios);
+ if (kernel_termios_to_user_termios((struct termios *)arg,
+ &priv->internal_termios))
+ return -EFAULT;
return 0;
case TCSETS: // 0x5402
@@ -527,7 +529,9 @@
dbg("%s - port %d Error in verify_area", __FUNCTION__, port->number);
return result;
}
- user_termios_to_kernel_termios( &priv->internal_termios, (struct termios *)arg);
+ if (user_termios_to_kernel_termios(&priv->internal_termios,
+ (struct termios *)arg))
+ return -EFAULT;
settings = (unsigned char *) kmalloc(50, GFP_KERNEL);
if (! settings) {
next prev parent reply other threads:[~2003-04-17 5:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-17 6:03 [BK PATCH] More USB fixes for 2.5.67 Greg KH
2003-04-17 6:05 ` [PATCH] " Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH [this message]
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 6:05 ` Greg KH
2003-04-17 15:18 ` Matthew Dharm
2003-04-17 17:10 ` Greg KH
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=1050559504205@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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