diff options
author | Albert Wang <[email protected]> | 2021-11-09 17:26:42 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-11-17 15:02:52 +0100 |
commit | 26288448120b28af1dfd85a6fa6b6d55a16c7f2f (patch) | |
tree | 00e7f6ffda29077082a134f781ed050b8783d2aa /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3b8599a6f4817bdd7c5e7145f2972b7f22f00a9d (diff) |
usb: dwc3: gadget: Fix null pointer exception
In the endpoint interrupt functions
dwc3_gadget_endpoint_transfer_in_progress() and
dwc3_gadget_endpoint_trbs_complete() will dereference the endpoint
descriptor. But it could be cleared in __dwc3_gadget_ep_disable()
when accessory disconnected. So we need to check whether it is null
or not before dereferencing it.
Fixes: f09ddcfcb8c5 ("usb: dwc3: gadget: Prevent EP queuing while stopping transfers")
Cc: stable <[email protected]>
Reviewed-by: Jack Pham <[email protected]>
Signed-off-by: Albert Wang <[email protected]>
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