aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-starfive.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-11-11 11:08:06 +0000
committerGreg Kroah-Hartman <[email protected]>2024-11-12 11:54:01 +0000
commite56aac6e5a25630645607b6856d4b2a17b2311a5 (patch)
tree91df3037d136ad84d3371f1791f3f0b8ad0b0262 /drivers/usb/cdns3/cdns3-starfive.c
parentusb: misc: ljca: set small runtime autosuspend delay (diff)
downloadkernel-e56aac6e5a25630645607b6856d4b2a17b2311a5.tar.gz
kernel-e56aac6e5a25630645607b6856d4b2a17b2311a5.zip
usb: typec: fix potential array underflow in ucsi_ccg_sync_control()
The "command" variable can be controlled by the user via debugfs. The worry is that if con_index is zero then "&uc->ucsi->connector[con_index - 1]" would be an array underflow. Fixes: 170a6726d0e2 ("usb: typec: ucsi: add support for separate DP altmode devices") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions