mirror of https://gitee.com/openkylin/linux.git
0df9433fca
Before this commit, typec_altmode_get_partner would return a
const struct typec_altmode * pointing to address 0x08 when
to_altmode(adev)->partner was NULL.
Add a check for to_altmode(adev)->partner being NULL to fix this.
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=206365
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1785972
Fixes:
|
||
---|---|---|
.. | ||
altmodes | ||
mux | ||
tcpm | ||
ucsi | ||
Kconfig | ||
Makefile | ||
bus.c | ||
bus.h | ||
class.c | ||
hd3ss3220.c | ||
mux.c | ||
tps6598x.c |