summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-03-27 11:43:04 +0100
committerMark Brown <broonie@kernel.org>2026-04-01 18:21:09 +0100
commitb99e3ddb91b499d920e63a2daff8880be68cfe9e (patch)
treead951e031c431d7b02b6834a434d7365892807e1 /tools/perf/scripts/python/bin/stackcollapse-record
parent762a3847a05c5c229009d36fbd0e2feee9dff81a (diff)
spi: ch341: fix memory leaks on probe failures
Make sure to deregister the controller, disable pins, and kill and free the RX URB on probe failures to mirror disconnect and avoid memory leaks and use-after-free. Also add an explicit URB kill on disconnect for symmetry (even if that is not strictly required as USB core would have stopped it in the current setup). 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-2-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