aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class/cdc-acm.c
diff options
context:
space:
mode:
authorSven Peter <[email protected]>2021-09-14 14:02:34 +0000
committerGreg Kroah-Hartman <[email protected]>2021-09-21 14:31:28 +0000
commitac588dfa66ab040bff7e5978be888dc040a026f9 (patch)
tree0691c111656818b2ed06a09d0e5c82524516462c /drivers/usb/class/cdc-acm.c
parentusb: typec: tipd: Don't read/write more bytes than required (diff)
downloadkernel-ac588dfa66ab040bff7e5978be888dc040a026f9.tar.gz
kernel-ac588dfa66ab040bff7e5978be888dc040a026f9.zip
usb: typec: tipd: Add an additional overflow check
tps6598x_block_read already checks for the maximum length of the read but tps6598x_block_write does not. Add the symmetric check there as well. Reviewed-by: Heikki Krogerus <[email protected]> Signed-off-by: Sven Peter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions