orinoco_usb: return error in ezusb_probe when alloc_orinocodev fails
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>
This commit is contained in:
parent
dae0412d0c
commit
989b8376f3
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue