projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04a723e
)
USB: FHCI: avoid NULL pointer dereference
author
Alexander Beregalov
<a.beregalov@gmail.com>
Thu, 7 Jan 2010 01:17:32 +0000
(
04:17
+0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 20 Jan 2010 23:24:35 +0000
(15:24 -0800)
Assign fhci only if usb is not NULL.
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/fhci-hcd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/host/fhci-hcd.c
b/drivers/usb/host/fhci-hcd.c
index 0951818ef93b8838651597b3acef7795a193eca3..78e7c3cfcb7282757d85fc331de14ab559580e4c 100644
(file)
--- a/
drivers/usb/host/fhci-hcd.c
+++ b/
drivers/usb/host/fhci-hcd.c
@@
-242,9
+242,10
@@
err:
static void fhci_usb_free(void *lld)
{
struct fhci_usb *usb = lld;
- struct fhci_hcd *fhci
= usb->fhci
;
+ struct fhci_hcd *fhci;
if (usb) {
+ fhci = usb->fhci;
fhci_config_transceiver(fhci, FHCI_PORT_POWER_OFF);
fhci_ep0_free(usb);
kfree(usb->actual_frame);