Heikki Krogerus
5f54a85db5
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: Vladimir Yerilov <openmindead@gmail.com>
Fixes: ad74b8649bea ("usb: typec: ucsi: Preliminary support for alternate modes")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-12 17:13:02 +02:00
..
2019-01-22 09:08:17 +01:00
2017-11-07 15:53:48 +01:00
2019-04-19 14:24:26 +02:00
2019-04-29 16:14:41 +02:00
2019-05-03 09:13:48 +03:00
2019-06-05 11:52:42 +02:00
2019-06-06 13:51:57 +03:00
2019-05-08 21:35:19 -07:00
2019-04-08 12:01:02 +01:00
2019-06-06 13:51:57 +03:00
2019-05-22 18:17:16 +02:00
2019-01-22 09:08:17 +01:00
2019-05-01 18:13:52 +02:00
2019-05-21 10:11:14 +02:00
2019-01-22 09:08:17 +01:00
2019-05-21 10:08:56 +02:00
2019-04-30 17:55:08 +02:00
2019-06-06 13:51:57 +03:00
2019-02-19 14:41:38 +01:00
2019-02-14 10:52:25 +01:00
2019-05-21 11:27:24 +02:00
2019-06-05 11:52:42 +02:00
2019-06-12 17:13:02 +02:00
2019-05-29 13:26:32 -07:00
2019-03-01 20:53:41 +01:00
2019-01-22 09:08:17 +01:00
2018-03-22 13:49:27 +01:00
2018-06-28 19:36:06 +09:00