diff options
author | Chris Wulff <[email protected]> | 2024-04-23 18:02:15 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-04-23 16:26:10 -0700 |
commit | 0aea736ddb877b93f6d2dd8cf439840d6b4970a9 (patch) | |
tree | 697405c95454f89c349e62bc593c2de82243f76c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a4b46d450c49f32e9d4247b421e58083fde304ce (diff) |
usb: gadget: f_fs: Fix a race condition when processing setup packets.
If the USB driver passes a pointer into the TRB buffer for creq, this
buffer can be overwritten with the status response as soon as the event
is queued. This can make the final check return USB_GADGET_DELAYED_STATUS
when it shouldn't. Instead use the stored wLength.
Fixes: 4d644abf2569 ("usb: gadget: f_fs: Only return delayed status when len is 0")
Cc: stable <[email protected]>
Signed-off-by: Chris Wulff <[email protected]>
Link: https://lore.kernel.org/r/CO1PR17MB5419BD664264A558B2395E28E1112@CO1PR17MB5419.namprd17.prod.outlook.com
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