aboutsummaryrefslogtreecommitdiffstats
path: root/rust/macros/paste.rs
diff options
context:
space:
mode:
authorKevin Hao <[email protected]>2025-04-10 06:56:09 +0000
committerMark Brown <[email protected]>2025-04-10 11:25:20 +0000
commit5d07ab2a7fa1305e429d9221716582f290b58078 (patch)
tree191e1007554e9ba262e8a5221176019451ab173c /rust/macros/paste.rs
parentLinux 6.15-rc1 (diff)
downloadkernel-5d07ab2a7fa1305e429d9221716582f290b58078.tar.gz
kernel-5d07ab2a7fa1305e429d9221716582f290b58078.zip
spi: fsl-qspi: Fix double cleanup in probe error path
Commit 40369bfe717e ("spi: fsl-qspi: use devm function instead of driver remove") introduced managed cleanup via fsl_qspi_cleanup(), but incorrectly retain manual cleanup in two scenarios: - On devm_add_action_or_reset() failure, the function automatically call fsl_qspi_cleanup(). However, the current code still jumps to err_destroy_mutex, repeating cleanup. - After the fsl_qspi_cleanup() action is added successfully, there is no need to manually perform the cleanup in the subsequent error path. However, the current code still jumps to err_destroy_mutex on spi controller failure, repeating cleanup. Skip redundant manual cleanup calls to fix these issues. Cc: [email protected] Fixes: 40369bfe717e ("spi: fsl-qspi: use devm function instead of driver remove") Signed-off-by: Kevin Hao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'rust/macros/paste.rs')
0 files changed, 0 insertions, 0 deletions