diff options
| author | Anurag Dutta <[email protected]> | 2025-11-05 16:11:45 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2025-11-13 18:50:35 +0000 |
| commit | f1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3 (patch) | |
| tree | 8f03333aad6fbc1a8d00b79e0b4c2eba480ff87a /net/unix/af_unix.c | |
| parent | spi: Add TODO comment about ACPI GPIO setup (diff) | |
| download | kernel-f1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3.tar.gz kernel-f1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3.zip | |
spi: spi-cadence-quadspi: Enable pm runtime earlier to avoid imbalance
The "probe_setup_failed" label calls pm_runtime_disable(), but
pm_runtime_enable() was placed after a possible jump to this label.
When cqspi_setup_flash() fails, control jumps to the label without
pm_runtime_enable() being called, leading to unbalanced PM runtime
reference counting.
Move pm_runtime_enable() and associated calls above the first
possible branch to "probe_setup_failed" to ensure balanced
enable/disable calls across all error paths.
Fixes: 30dbc1c8d50f ("spi: cadence-qspi: defer runtime support on socfpga if reset bit is enabled")
Signed-off-by: Anurag Dutta <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
