diff options
| author | Johan Hovold <johan@kernel.org> | 2026-03-27 11:43:05 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-04-01 18:21:09 +0100 |
| commit | abe572f630bc1f0e77041012ab075869036ede4f (patch) | |
| tree | 23263f62438afc5cc7605692d7faa5ce4ebc6386 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | b99e3ddb91b499d920e63a2daff8880be68cfe9e (diff) | |
spi: ch341: 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 controller and driver data lifetime so that they are released
on driver unbind.
Note that this also makes sure that the SPI controller is placed
correctly under the USB interface in the device tree.
Fixes: 8846739f52af ("spi: add ch341a usb2spi driver")
Cc: stable@vger.kernel.org # 6.11
Cc: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260327104305.1309915-3-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
