aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAlan Stern <[email protected]>2018-10-15 16:55:04 -0400
committerGreg Kroah-Hartman <[email protected]>2018-10-16 13:09:36 +0200
commit665c365a77fbfeabe52694aedf3446d5f2f1ce42 (patch)
treeff6a03294a000077f970491d8e6db196b99b1ff2 /tools/perf/scripts/python/export-to-postgresql.py
parentc02588a352defaf985fc1816eb6232663159e1b8 (diff)
USB: fix the usbfs flag sanitization for control transfers
Commit 7a68d9fb8510 ("USB: usbdevfs: sanitize flags more") checks the transfer flags for URBs submitted from userspace via usbfs. However, the check for whether the USBDEVFS_URB_SHORT_NOT_OK flag should be allowed for a control transfer was added in the wrong place, before the code has properly determined the direction of the control transfer. (Control transfers are special because for them, the direction is set by the bRequestType byte of the Setup packet rather than direction bit of the endpoint address.) This patch moves code which sets up the allow_short flag for control transfers down after is_in has been set to the correct value. Signed-off-by: Alan Stern <[email protected]> Reported-and-tested-by: [email protected] Fixes: 7a68d9fb8510 ("USB: usbdevfs: sanitize flags more") CC: Oliver Neukum <[email protected]> CC: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions