OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae0412
)
orinoco_usb: return error in ezusb_probe when alloc_orinocodev fails
author
John Linville
<linville@tuxdriver.com>
Mon, 19 Oct 2015 15:15:00 +0000
(11:15 -0400)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 28 Oct 2015 18:55:47 +0000
(20:55 +0200)
The current code exits after alloc_orinocodev, but fails to change the
return value to something that indicates the failure. This patch
changes the return value to -ENOMEM.
https://bugzilla.kernel.org/show_bug.cgi?id=106181
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/orinoco/orinoco_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/orinoco/orinoco_usb.c
b/drivers/net/wireless/orinoco/orinoco_usb.c
index
26a57d7
..
f2cd513
100644
(file)
--- a/
drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/
drivers/net/wireless/orinoco/orinoco_usb.c
@@
-1576,6
+1576,7
@@
static int ezusb_probe(struct usb_interface *interface,
ezusb_hard_reset, NULL);
if (!priv) {
err("Couldn't allocate orinocodev");
+ retval = -ENOMEM;
goto exit;
}