aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorNaoki Kiryu <[email protected]>2020-04-22 14:43:45 +0000
committerGreg Kroah-Hartman <[email protected]>2020-04-22 17:23:19 +0000
commit0df9433fcae02215c8fd79690c134d535c7bb905 (patch)
tree6d4df89139095e50945dd8056e80a4b95ac74ec5 /tools/perf/scripts/python/bin/export-to-postgresql-report
parentxhci: Don't clear hub TT buffer on ep0 protocol stall (diff)
downloadkernel-0df9433fcae02215c8fd79690c134d535c7bb905.tar.gz
kernel-0df9433fcae02215c8fd79690c134d535c7bb905.zip
usb: typec: altmode: Fix typec_altmode_get_partner sometimes returning an invalid pointer
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: 5f54a85db5df ("usb: typec: Make sure an alt mode exist before getting its partner") Cc: [email protected] Signed-off-by: Naoki Kiryu <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions