Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0ce7fd9f authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Will McVicker
Browse files

UPSTREAM: 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.

Bug: 150877929
Reported-by: default avatarVladimir Yerilov <openmindead@gmail.com>
Fixes: ad74b8649bea ("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>
Change-Id: I600cfd688ed936e45f45aad409d3b166664038d4
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
(cherry picked from commit 5f54a85db5df67df8161739a4b2f9c2b7ab219fe)
parent 20859c29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment