]> git.baikalelectronics.ru Git - kernel.git/commit
orinoco_usb: return error in ezusb_probe when alloc_orinocodev fails
authorJohn Linville <linville@tuxdriver.com>
Mon, 19 Oct 2015 15:15:00 +0000 (11:15 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 28 Oct 2015 18:55:47 +0000 (20:55 +0200)
commit0588711d330ba32aac4ebb7da6de07eb0eea116e
treeb45e7e2848c75cb4978546d82ea0113789065313
parenta84cec10c9473011876623b8140431933f1dc994
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>
drivers/net/wireless/orinoco/orinoco_usb.c