Skip to content

Commit

Permalink
orinoco_usb: return error in ezusb_probe when alloc_orinocodev fails
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
linvjw authored and Kalle Valo committed Oct 28, 2015
1 parent dae0412 commit 989b837
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/orinoco/orinoco_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 989b837

Please sign in to comment.