Skip to content
Commit 5f54a85d authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Greg Kroah-Hartman
Browse files

usb: typec: Make sure an alt mode exist before getting its partner



Adding check to typec_altmode_get_partner() to prevent
potential NULL pointer dereference.

Reported-by: default avatarVladimir Yerilov <openmindead@gmail.com>
Fixes: ad74b864 ("usb: typec: ucsi: Preliminary support for alternate modes")
Signed-off-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c2ed3d47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment