diff options
author | Thinh Nguyen <[email protected]> | 2024-11-14 01:02:18 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-11-16 09:04:56 +0100 |
commit | b7fc65f5141c24785dc8c19249ca4efcf71b3524 (patch) | |
tree | 39d5436a08c7d0461b34e1c8a746ff30556f1b1b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 02a6982b0ccfcdc39e20016f5fc9a1b7826a6ee7 (diff) |
usb: dwc3: gadget: Fix looping of queued SG entries
The dwc3_request->num_queued_sgs is decremented on completion. If a
partially completed request is handled, then the
dwc3_request->num_queued_sgs no longer reflects the total number of
num_queued_sgs (it would be cleared).
Correctly check the number of request SG entries remained to be prepare
and queued. Failure to do this may cause null pointer dereference when
accessing non-existent SG entry.
Cc: [email protected]
Fixes: c96e6725db9d ("usb: dwc3: gadget: Correct the logic for queuing sgs")
Signed-off-by: Thinh Nguyen <[email protected]>
Link: https://lore.kernel.org/r/d07a7c4aa0fcf746cdca0515150dbe5c52000af7.1731545781.git.Thinh.Nguyen@synopsys.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