diff options
author | Carlos Song <[email protected]> | 2024-04-03 16:40:29 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-04-03 11:04:57 +0100 |
commit | bff892acf79cec531da6cb21c50980a584ce1476 (patch) | |
tree | ced6451d87055d983d09eb31599cbb9650914969 /tools/perf/util/trace-event-scripting.c | |
parent | a3d3eab627bbbb0cb175910cf8d0f7022628a642 (diff) |
spi: spi-fsl-lpspi: remove redundant spi_controller_put call
devm_spi_alloc_controller will allocate an SPI controller and
automatically release a reference on it when dev is unbound from
its driver. It doesn't need to call spi_controller_put explicitly
to put the reference when lpspi driver failed initialization.
Fixes: 2ae0ab0143fc ("spi: lpspi: Avoid potential use-after-free in probe()")
Signed-off-by: Carlos Song <[email protected]>
Reviewed-by: Alexander Sverdlin <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions