projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f05932c
)
USB: fix oops in cdc-wdm in case of malformed descriptors
author
Oliver Neukum
<oliver@neukum.org>
Sat, 4 Apr 2009 07:25:15 +0000
(09:25 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 17 Apr 2009 17:50:24 +0000
(10:50 -0700)
cdc-wdm needs to ignore extremely malformed descriptors.
Signed-off-by: Oliver Neukum <oliver@neukum.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-wdm.c
patch
|
blob
|
history
diff --git
a/drivers/usb/class/cdc-wdm.c
b/drivers/usb/class/cdc-wdm.c
index 3771d6e6d0ccb95587c2bf3ca9de5e6fdf492348..34e6108e1d42bfd879ed28df0ed00e2d2f538425 100644
(file)
--- a/
drivers/usb/class/cdc-wdm.c
+++ b/
drivers/usb/class/cdc-wdm.c
@@
-652,7
+652,7
@@
next_desc:
iface = &intf->altsetting[0];
ep = &iface->endpoint[0].desc;
- if (!usb_endpoint_is_int_in(ep)) {
+ if (!
ep || !
usb_endpoint_is_int_in(ep)) {
rv = -EINVAL;
goto err;
}