diff options
| author | Johan Hovold <johan@kernel.org> | 2026-03-27 12:32:19 +0100 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-04-07 12:34:52 +0200 |
| commit | 25369b22223d1c56e42a0cd4ac9137349d5a898e (patch) | |
| tree | 685d71fed71a61e1060db2532299283140eea552 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 304950a467d83678bd0b0f46331882e2ac23b12d (diff) | |
wifi: rt2x00usb: fix devres lifetime
USB drivers bind to USB interfaces and any device managed resources
should have their lifetime tied to the interface rather than parent USB
device. This avoids issues like memory leaks when drivers are unbound
without their devices being physically disconnected (e.g. on probe
deferral or configuration changes).
Fix the USB anchor lifetime so that it is released on driver unbind.
Fixes: 8b4c0009313f ("rt2x00usb: Use usb anchor to manage URB")
Cc: stable@vger.kernel.org # 4.7
Cc: Vishal Thanki <vishalthanki@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260327113219.1313748-1-johan@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
