diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-07-04 15:34:06 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-06 17:36:19 +0300 |
commit | 9920184d78edeccd165832d54d6203fae4c860f5 (patch) | |
tree | b1e52ab458c7f0d9fe38c10e52b1dc02ba4c4aaf /drivers/uwb | |
parent | 6f3fde684d0232e66ada3410f016a58e09a87689 (diff) | |
download | linux-9920184d78edeccd165832d54d6203fae4c860f5.tar.xz |
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 <colin.king@canonical.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb')
0 files changed, 0 insertions, 0 deletions