diff options
| author | Mathias Nyman <[email protected]> | 2025-09-02 10:53:06 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-09-06 13:29:18 +0000 |
| commit | edcbe06453ddfde21f6aa763f7cab655f26133cc (patch) | |
| tree | e394c14355a1dfad29e8f84a0331a3d79dec2641 /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | xhci: dbc: Fix full DbC transfer ring after several reconnects (diff) | |
| download | kernel-edcbe06453ddfde21f6aa763f7cab655f26133cc.tar.gz kernel-edcbe06453ddfde21f6aa763f7cab655f26133cc.zip | |
xhci: fix memory leak regression when freeing xhci vdev devices depth first
Suspend-resume cycle test revealed a memory leak in 6.17-rc3
Turns out the slot_id race fix changes accidentally ends up calling
xhci_free_virt_device() with an incorrect vdev parameter.
The vdev variable was reused for temporary purposes right before calling
xhci_free_virt_device().
Fix this by passing the correct vdev parameter.
The slot_id race fix that caused this regression was targeted for stable,
so this needs to be applied there as well.
Fixes: 2eb03376151b ("usb: xhci: Fix slot_id resource race conflict")
Reported-by: David Wang <[email protected]>
Closes: https://lore.kernel.org/linux-usb/[email protected]
Suggested-by: Michal Pecio <[email protected]>
Suggested-by: David Wang <[email protected]>
Cc: [email protected]
Tested-by: David Wang <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
