projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d866150
)
USB: serial: mos7720: Fix possible null pointer dereference
author
Huzaifa Sidhpurwala
<huzaifas@redhat.com>
Mon, 21 Feb 2011 07:28:45 +0000
(12:58 +0530)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 25 Feb 2011 19:33:01 +0000
(11:33 -0800)
Signed-off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/mos7720.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/mos7720.c
b/drivers/usb/serial/mos7720.c
index 7d3bc9a3e2b6cab8b650f7814575d3bf1ee5460e..ae506f4ee29d3551fbaea40982a9dc507a64dc59 100644
(file)
--- a/
drivers/usb/serial/mos7720.c
+++ b/
drivers/usb/serial/mos7720.c
@@
-2052,7
+2052,7
@@
static int mos7720_startup(struct usb_serial *serial)
struct usb_device *dev;
int i;
char data;
- u16 product
= le16_to_cpu(serial->dev->descriptor.idProduct)
;
+ u16 product;
int ret_val;
dbg("%s: Entering ..........", __func__);
@@
-2062,6
+2062,7
@@
static int mos7720_startup(struct usb_serial *serial)
return -ENODEV;
}
+ product = le16_to_cpu(serial->dev->descriptor.idProduct);
dev = serial->dev;
/*