diff options
| author | Colin Ian King <[email protected]> | 2018-07-04 13:34:06 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-07-06 16:36:19 +0200 |
| commit | 9920184d78edeccd165832d54d6203fae4c860f5 (patch) | |
| tree | b1e52ab458c7f0d9fe38c10e52b1dc02ba4c4aaf /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | 6f3fde684d0232e66ada3410f016a58e09a87689 (diff) | |
usb: typec: fix dereference before null check on adev
Pointer adev is being dereferenced before it is being sanity
checked with a null pointer check, hence it is possible for
a null pointer dereference to occur. Fix this by dereferencing
adev only once it is null checked.
Detected by CoverityScan, CID#1471598 ("Dereference before null check")
Fixes: 8a37d87d72f0 ("usb: typec: Bus type for alternate modes")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions