aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorKrishna Kurapati <[email protected]>2023-09-27 16:28:58 +0530
committerGreg Kroah-Hartman <[email protected]>2023-10-02 13:38:10 +0200
commit427694cfaafa565a3db5c5ea71df6bc095dca92f (patch)
tree78530fecf71dd1a68650e73331caf4c03346f6d1 /scripts/gdb/linux/utils.py
parent33d7e37232155aadebe4145dcc592f00dabd7a2b (diff)
usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call
When NCM is used with hosts like Windows PC, it is observed that there are multiple NTB's contained in one usb request giveback. Since the driver unwraps the obtained request data assuming only one NTB is present, we loose the subsequent NTB's present resulting in data loss. Fix this by checking the parsed block length with the obtained data length in usb request and continue parsing after the last byte of current NTB. Cc: [email protected] Fixes: 9f6ce4240a2b ("usb: gadget: f_ncm.c added") Signed-off-by: Krishna Kurapati <[email protected]> Reviewed-by: Maciej Żenczykowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions