diff options
author | RD Babiera <[email protected]> | 2023-08-14 18:05:59 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-08-22 14:44:28 +0200 |
commit | f23643306430f86e2f413ee2b986e0773e79da31 (patch) | |
tree | 5c43f1ccdea5c7e375f086945ef4da88285b5370 /net/lapb/lapb_timer.c | |
parent | 20deab8bfc936063385fdce19287f1f630cb2f4b (diff) |
usb: typec: bus: verify partner exists in typec_altmode_attention
Some usb hubs will negotiate DisplayPort Alt mode with the device
but will then negotiate a data role swap after entering the alt
mode. The data role swap causes the device to unregister all alt
modes, however the usb hub will still send Attention messages
even after failing to reregister the Alt Mode. type_altmode_attention
currently does not verify whether or not a device's altmode partner
exists, which results in a NULL pointer error when dereferencing
the typec_altmode and typec_altmode_ops belonging to the altmode
partner.
Verify the presence of a device's altmode partner before sending
the Attention message to the Alt Mode driver.
Fixes: 8a37d87d72f0 ("usb: typec: Bus type for alternate modes")
Cc: [email protected]
Signed-off-by: RD Babiera <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions