diff options
author | Aditya Pakki <pakki001@umn.edu> | 2019-12-15 13:58:58 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-24 08:36:38 +0100 |
commit | 75423fdad259b2ec95c6d68469e952f6899e03e1 (patch) | |
tree | 343fa52eaa6675f1d7ee5cb6c5edb8d444d65f82 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 5a14db967b72c0dbc2ae6df78925e208f2e365db (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/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions