projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: host: ohci-tmio: check return value after calling platform_get_resource()
[linux-2.6-microblaze.git]
/
drivers
/
usb
/
host
/
ohci-tmio.c
diff --git
a/drivers/usb/host/ohci-tmio.c
b/drivers/usb/host/ohci-tmio.c
index
08ec2ab
..
3f3d62d
100644
(file)
--- a/
drivers/usb/host/ohci-tmio.c
+++ b/
drivers/usb/host/ohci-tmio.c
@@
-199,7
+199,7
@@
static int ohci_hcd_tmio_drv_probe(struct platform_device *dev)
if (usb_disabled())
return -ENODEV;
- if (!cell)
+ if (!cell
|| !regs || !config || !sram
)
return -EINVAL;
if (irq < 0)