orinoco: avoid assertion in case of NULL pointer
authorAditya Pakki <pakki001@umn.edu>
Sun, 15 Dec 2019 19:58:58 +0000 (13:58 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 18 Dec 2019 19:09:33 +0000 (21:09 +0200)
commitc705f9fc6a1736dcf6ec01f8206707c108dca824
treecb1c544a2cd41396486b97510a0aa1de007349d3
parenta32de68edab7b73ded850bcf76cdf6858e92a7e5
orinoco: avoid assertion in case of NULL pointer

In ezusb_init, if upriv is NULL, the code crashes. However, the caller
in ezusb_probe can handle the error and print the failure message.
The patch replaces the BUG_ON call to error return.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/orinoco/orinoco_usb.c