diff options
| author | Xingxing Luo <[email protected]> | 2023-09-19 03:30:55 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-10-02 11:37:57 +0000 |
| commit | 33d7e37232155aadebe4145dcc592f00dabd7a2b (patch) | |
| tree | fa2304a12ccee5fc4d129243854d0ffb1269c19e /drivers/usb/cdns3/core.h | |
| parent | usb: musb: Modify the "HWVers" register address (diff) | |
| download | kernel-33d7e37232155aadebe4145dcc592f00dabd7a2b.tar.gz kernel-33d7e37232155aadebe4145dcc592f00dabd7a2b.zip | |
usb: musb: Get the musb_qh poniter after musb_giveback
When multiple threads are performing USB transmission, musb->lock will be
unlocked when musb_giveback is executed. At this time, qh may be released
in the dequeue process in other threads, resulting in a wild pointer, so
it needs to be here get qh again, and judge whether qh is NULL, and when
dequeue, you need to set qh to NULL.
Fixes: dbac5d07d13e ("usb: musb: host: don't start next rx urb if current one failed")
Cc: [email protected]
Signed-off-by: Xingxing Luo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.h')
0 files changed, 0 insertions, 0 deletions
