aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorKhalid Masum <[email protected]>2022-08-25 01:38:13 +0600
committerGreg Kroah-Hartman <[email protected]>2022-08-31 09:07:53 +0200
commitd27c66adb4c0b16c817f71ba96e90f322e7419af (patch)
treeda43a6faca6ba7cb368fce24a7d88c714fa93708 /tools/perf/scripts/python/export-to-sqlite.py
parent4348f2e3ab3358898bfe93387ced7f3e1e3a6186 (diff)
usb: ehci: Use endpoint in URB to get maxpacket
usb_maxpacket() looks up the endpoint number in the pipe which can fail if the interface or configuration changes before the routine is called. This is unexpected and may even cause a modulo by zero afterwards. So use usb_endpoint_maxp() routine which uses the endpoint stored in URB to get the maxpacket. Suggested-by: Alan Stern <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Khalid Masum <[email protected]> Addresses-Coverity: 744857 ("Division or modulo by zero") Addresses-Coverity: 1487371 ("Division or modulo by zero") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions