diff options
author | Aditya Pakki <pakki001@umn.edu> | 2019-12-15 13:58:58 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-28 15:38:59 +0100 |
commit | baa94fa9089201583e1190e9e5b1497d1fe4b0fd (patch) | |
tree | bbf1f81b9057103161d465dd4db0b861edcdbea8 /drivers/acpi/acpica/dsfield.c | |
parent | 852133b4952599c256cdc5e0d2c6c33f209dc320 (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>
Diffstat (limited to 'drivers/acpi/acpica/dsfield.c')
0 files changed, 0 insertions, 0 deletions