remarkable-linux/drivers/usb/typec
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: ad74b8649b ("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
..
altmodes usb: typec: Add driver for NVIDIA Alt Modes 2019-04-25 11:04:56 +02:00
mux usb: typec: pi3usb30532: Keep orientation when setting mux to safe mode 2019-03-19 15:00:34 +01:00
tcpm usb: typec: fusb302: Revert "Resolve fixed power role contract setup" 2019-04-19 14:23:34 +02:00
ucsi usb: typec: ucsi: ccg: fix memory leak in do_flash 2019-06-03 14:24:57 +02:00
bus.c usb: typec: Make sure an alt mode exist before getting its partner 2019-06-12 17:13:02 +02:00
bus.h usb: typec: avoid format-overflow warning 2018-07-06 16:36:19 +02:00
class.c usb: typec: Find the ports by also matching against the device node 2019-02-14 10:52:25 +01:00
Kconfig USB: add missing SPDX lines to Kconfig and Makefiles 2019-01-22 09:08:17 +01:00
Makefile usb: typec: Group all TCPCI/TCPM code together 2018-09-20 13:37:29 +02:00
mux.c usb: typec: mux: remove redundant check on variable match 2019-02-20 11:29:01 +01:00
tps6598x.c usb: typec: tps6598x: handle block writes separately with plain-I2C adapters 2019-02-21 10:54:23 +01:00