From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: linux-kernel@vger.kernel.org, torvalds@osdl.org
Subject: PATCH: fix invalid/illegal oddments in USB
Date: Sun, 27 Jul 2003 21:15:10 +0100 [thread overview]
Message-ID: <200307272015.h6RKFAnE029719@hraefn.swansea.linux.org.uk> (raw)
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test2/drivers/usb/misc/usbtest.c linux-2.6.0-test2-ac1/drivers/usb/misc/usbtest.c
--- linux-2.6.0-test2/drivers/usb/misc/usbtest.c 2003-07-27 19:56:28.000000000 +0100
+++ linux-2.6.0-test2-ac1/drivers/usb/misc/usbtest.c 2003-07-27 20:30:56.000000000 +0100
@@ -471,7 +471,7 @@
* they're ordered meaningfully in this array
*/
if (iface->altsetting [i].desc.bAlternateSetting != i) {
- dbg ("%s, illegal alt [%d].bAltSetting = %d",
+ dbg ("%s, invalid alt [%d].bAltSetting = %d",
dev->id, i,
iface->altsetting [i].desc
.bAlternateSetting);
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test2/drivers/usb/net/usbnet.c linux-2.6.0-test2-ac1/drivers/usb/net/usbnet.c
--- linux-2.6.0-test2/drivers/usb/net/usbnet.c 2003-07-27 19:56:28.000000000 +0100
+++ linux-2.6.0-test2-ac1/drivers/usb/net/usbnet.c 2003-07-23 16:46:49.000000000 +0100
@@ -890,7 +890,7 @@
le32_to_cpus (&header->packet_count);
if ((header->packet_count > GL_MAX_TRANSMIT_PACKETS)
|| (header->packet_count < 0)) {
- dbg ("genelink: illegal received packet count %d",
+ dbg ("genelink: invalid received packet count %d",
header->packet_count);
return 0;
}
@@ -907,7 +907,7 @@
// this may be a broken packet
if (size > GL_MAX_PACKET_LEN) {
- dbg ("genelink: illegal rx length %d", size);
+ dbg ("genelink: invalid rx length %d", size);
return 0;
}
@@ -943,7 +943,7 @@
skb_pull (skb, 4);
if (skb->len > GL_MAX_PACKET_LEN) {
- dbg ("genelink: illegal rx length %d", skb->len);
+ dbg ("genelink: invalid rx length %d", skb->len);
return 0;
}
return 1;
@@ -2769,6 +2769,15 @@
.bInterfaceSubClass = 0x0a,
.bInterfaceProtocol = 0x00,
.driver_info = (unsigned long) &zaurus_slc700_info,
+}, {
+ .match_flags = USB_DEVICE_ID_MATCH_INT_INFO
+ | USB_DEVICE_ID_MATCH_DEVICE,
+ .idVendor = 0x04DD,
+ .idProduct = 0x9031,
+ .bInterfaceClass = 0x02,
+ .bInterfaceSubClass = 0x0a,
+ .bInterfaceProtocol = 0x00,
+ .driver_info = (unsigned long) &zaurus_sla300_info,
},
#endif
reply other threads:[~2003-07-28 1:17 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=200307272015.h6RKFAnE029719@hraefn.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--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;
as well as URLs for NNTP newsgroup(s).