commit | 5704974eb30050cd1758b5ab280d04cb56651596 | [log] [tgz] |
---|---|---|
author | Aditya Pakki <pakki001@umn.edu> | Sun Dec 15 13:58:58 2019 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Feb 28 15:42:26 2020 +0100 |
tree | d170739348d39b1f0baf3801218ff4f0073bb18a | |
parent | 92c3b58ac24a673ad0df30d7e00a256414c89f2e [diff] |
orinoco: avoid assertion in case of NULL pointer [ Upstream commit c705f9fc6a1736dcf6ec01f8206707c108dca824 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>