linux-yocto/drivers
Kevin Hao 2701654671 spi: fsl-qspi: Fix double cleanup in probe error path
[ Upstream commit 5d07ab2a7f ]

Commit 40369bfe71 ("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: stable@vger.kernel.org
Fixes: 40369bfe71 ("spi: fsl-qspi: use devm function instead of driver remove")
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Link: https://patch.msgid.link/20250410-spi-v1-1-56e867cc19cf@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 11:01:50 +02:00
..
accel accel/ivpu: Trigger device recovery on engine reset/resume failure 2025-07-06 11:01:38 +02:00
accessibility
acpi ACPI: battery: negate current when discharging 2025-06-27 11:11:28 +01:00
amba
android binder: fix offset calculation in debug log 2025-05-09 09:50:29 +02:00
ata ata: ahci: Use correct DMI identifier for ASUSPRO-D840SA LPM quirk 2025-07-06 11:01:38 +02:00
atm atm: atmtcp: Free invalid length skb in atmtcp_c_send(). 2025-06-27 11:11:43 +01:00
auxdisplay auxdisplay: charlcd: Partially revert "Move hwidth and bwidth to struct hd44780_common" 2025-05-29 11:02:24 +02:00
base software node: Correct a OOB check in software_node_get_reference_args() 2025-06-27 11:11:34 +01:00
bcma
block ublk: santizize the arguments from userspace when adding a device 2025-06-27 11:11:44 +01:00
bluetooth Bluetooth: btusb: Add new VID/PID 13d3/3630 for MT7925 2025-06-27 11:11:29 +01:00
bus Revert "bus: ti-sysc: Probe for l4_wkup and l4_cfg interconnect devices first" 2025-06-27 11:11:36 +01:00
cache
cdrom
cdx
char char: tpm: tpm-buf: Add sanity check fallback in read helpers 2025-06-04 14:43:53 +02:00
clk clk: rockchip: rk3036: mark ddrphy as critical 2025-06-27 11:11:32 +01:00
clocksource clocksource: mips-gic-timer: Enable counter when CPUs start 2025-05-29 11:02:41 +02:00
comedi comedi: jr3_pci: Fix synchronous deletion of timer 2025-05-02 07:59:30 +02:00
connector
counter counter: interrupt-cnt: Protect enable/disable OPs with mutex 2025-06-19 15:32:12 +02:00
cpufreq cpufreq/amd-pstate: Add missing NULL ptr check in amd_pstate_update 2025-06-27 11:11:39 +01:00
cpuidle cpuidle: menu: Avoid discarding useful information 2025-05-29 11:02:38 +02:00
crypto crypto: qat - add shutdown handler to qat_dh895xcc 2025-06-27 11:11:13 +01:00
cxl cxl/region: Add a dev_err() on missing target list entries 2025-07-06 11:01:32 +02:00
dax
dca
devfreq
dio
dma dmaengine: xilinx_dma: Set dma_device directions 2025-07-06 11:01:33 +02:00
dma-buf udmabuf: use sgtable-based scatterlist wrappers 2025-06-27 11:11:38 +01:00
dpll dpll: Add an assertion to check freq_supported_num 2025-05-29 11:02:31 +02:00
edac EDAC/amd64: Fix size calculation for Non-Power-of-Two DIMMs 2025-07-06 11:01:42 +02:00
eisa
extcon
firewire
firmware sysfb: Fix screen_info type check for VGA 2025-06-27 11:11:23 +01:00
fpga fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt() 2025-06-19 15:32:13 +02:00
fsi
gnss
gpio gpio: mlxbf3: only get IRQ for device instance 0 2025-06-27 11:11:46 +01:00
gpu drm/amdkfd: Fix instruction hazard in gfx12 trap handler 2025-07-06 11:01:50 +02:00
greybus
hid HID: wacom: fix kobject reference count leak 2025-07-06 11:01:44 +02:00
hsi HSI: ssi_protocol: Fix use after free vulnerability in ssi_protocol Driver Due to Race Condition 2025-04-20 10:16:02 +02:00
hte
hv Drivers: hv: Allocate interrupt and monitor pages aligned to system page boundary 2025-06-27 11:11:24 +01:00
hwmon hwmon: (pmbus/max34440) Fix support for max34451 2025-07-06 11:01:32 +02:00
hwspinlock
hwtracing coresight: Only check bottom two claim bits 2025-07-06 11:01:34 +02:00
i2c i2c: robotfuzz-osif: disable zero-length read messages 2025-07-06 11:01:38 +02:00
i3c i3c: master: svc: Fix implicit fallthrough in svc_i3c_master_ibi_work() 2025-05-29 11:03:26 +02:00
idle
iio iio: dac: ad3552r-common: fix ad3541/2r ranges 2025-07-06 11:01:49 +02:00
infiniband RDMA/hns: initialize db in update_srq_db() 2025-06-27 11:11:34 +01:00
input Input: sparcspkr - avoid unannotated fall-through 2025-06-27 11:11:39 +01:00
interconnect
iommu iommu/amd: Ensure GA log notifier callbacks finish running before module unload 2025-06-27 11:11:32 +01:00
ipack
irqchip irqchip/riscv-imsic: Start local sync timer on correct CPU 2025-05-29 11:03:15 +02:00
isdn
leds leds: multicolor: Fix intensity setting while SW blinking 2025-07-06 11:01:32 +02:00
macintosh
mailbox mailbox: Not protect module_put with spin_lock_irqsave 2025-07-06 11:01:32 +02:00
mcb mcb: fix a double free bug in chameleon_parse_gdd() 2025-05-02 07:59:08 +02:00
md dm-raid: fix variable in journal device check 2025-07-06 11:01:43 +02:00
media media: uvcvideo: Rollback non processed entities on error 2025-07-06 11:01:47 +02:00
memory
memstick
message
mfd mfd: max14577: Fix wakeup source leaks on device unbind 2025-07-06 11:01:32 +02:00
misc misc: tps6594-pfsm: Add NULL pointer check in tps6594_pfsm_probe() 2025-07-06 11:01:35 +02:00
mmc mmc: Add quirk to disable DDR50 tuning 2025-06-27 11:11:26 +01:00
most
mtd mtd: rawnand: qcom: Fix read len for onfi param page 2025-06-27 11:11:23 +01:00
mux
net net: stmmac: Fix accessing freed irq affinity_hint 2025-07-06 11:01:50 +02:00
nfc
ntb ntb_hw_amd: Add NTB PCI ID for new gen CPU 2025-05-02 07:59:20 +02:00
nubus
nvdimm libnvdimm/labels: Fix divide error in nd_label_data_init() 2025-05-29 11:02:09 +02:00
nvme nvme-tcp: sanitize request list handling 2025-07-06 11:01:33 +02:00
nvmem nvmem: zynqmp_nvmem: unbreak driver after cleanup 2025-06-19 15:32:34 +02:00
of of: unittest: Unlock on error in unittest_data_add() 2025-06-19 15:31:48 +02:00
opp
parisc
parport
pci PCI: apple: Set only available ports up 2025-07-06 11:01:37 +02:00
pcmcia
peci
perf perf/amlogic: Replace smp_processor_id() with raw_smp_processor_id() in meson_ddr_pmu_create() 2025-06-19 15:31:38 +02:00
phy phy: fsl-imx8mq-usb: fix phy_tx_vboost_level_from_property() 2025-06-27 11:11:23 +01:00
pinctrl pinctrl: mcp23s08: Reset all pins to input at probe 2025-06-27 11:11:34 +01:00
platform platform/x86/intel-uncore-freq: Fail module load when plat_info is NULL 2025-06-27 11:11:38 +01:00
pmdomain pmdomain: core: Reset genpd->states to avoid freeing invalid data 2025-06-27 11:11:27 +01:00
pnp
power power: supply: max17040: adjust thermal channel scaling 2025-06-27 11:11:28 +01:00
powercap
pps
ps3
ptp ptp: allow reading of currently dialed frequency to succeed on free-running clocks 2025-06-27 11:11:43 +01:00
pwm pwm: axi-pwmgen: fix missing separate external clock 2025-06-27 11:11:23 +01:00
rapidio drivers/rapidio/rio_cm.c: prevent possible heap overwrite 2025-06-27 11:11:36 +01:00
ras RAS/AMD/FMPM: Get masked address 2025-04-25 10:47:56 +02:00
regulator regulator: max14577: Add error check for max14577_read_reg() 2025-06-27 11:11:24 +01:00
remoteproc remoteproc: k3-m4: Don't assert reset in detach routine 2025-06-27 11:11:24 +01:00
reset
rpmsg rpmsg: qcom_smd: Fix uninitialized return variable in __qcom_smd_send() 2025-06-19 15:32:06 +02:00
rtc rtc: loongson: Add missing alarm notifications for ACPI RTC events 2025-06-19 15:32:10 +02:00
s390 s390/pkey: Prevent overflow in size calculation for memdup_user() 2025-07-06 11:01:38 +02:00
sbus
scsi scsi: megaraid_sas: Fix invalid node index 2025-07-06 11:01:44 +02:00
sh
siox
slimbus
soc soc: qcom: pmic_glink_altmode: fix spurious DP hotplug events 2025-06-27 11:11:22 +01:00
soundwire soundwire: bus: Fix race on the creation of the IRQ domain 2025-05-29 11:03:13 +02:00
spi spi: fsl-qspi: Fix double cleanup in probe error path 2025-07-06 11:01:50 +02:00
spmi
ssb
staging staging: rtl8723bs: Avoid memset() in aes_cipher() and aes_decipher() 2025-07-06 11:01:42 +02:00
target scsi: target: spc: Fix loop traversal in spc_rsoc_get_descr() 2025-05-29 11:02:54 +02:00
tc
tee tee: Prevent size calculation wraparound on 32-bit kernels 2025-06-27 11:11:36 +01:00
thermal thermal/drivers/mediatek/lvts: Remove unused lvts_debugfs_exit 2025-06-19 15:32:38 +02:00
thunderbolt thunderbolt: Fix a logic error in wake on connect 2025-06-19 15:32:11 +02:00
tty serial: imx: Restore original RXTL for console to fix data loss 2025-07-06 11:01:43 +02:00
ufs scsi: ufs: core: Fix clk scaling to be conditional in reset and restore 2025-07-06 11:01:44 +02:00
uio uio_hv_generic: Align ring size to system page 2025-06-27 11:11:25 +01:00
usb usb: typec: tcpm: PSSourceOffTimer timeout in PR_Swap enters ERROR_RECOVERY 2025-07-06 11:01:49 +02:00
vdpa vdpa/mlx5: Fix mlx5_vdpa_get_config() endianness on big-endian machines 2025-05-29 11:02:38 +02:00
vfio vfio/type1: Fix error unwind in migration dirty bitmap allocation 2025-06-19 15:31:52 +02:00
vhost vhost-scsi: Return queue full for page alloc failures during copy 2025-05-29 11:02:38 +02:00
video fbcon: Make sure modelist not set on unregistered console 2025-06-27 11:11:35 +01:00
virt configfs-tsm-report: Fix NULL dereference of tsm_ops 2025-06-27 11:11:22 +01:00
virtio virtio_ring: Fix data race by tagging event_triggered as racy for KCSAN 2025-05-29 11:01:58 +02:00
w1
watchdog watchdog: da9052_wdt: respect TWDMIN 2025-06-27 11:11:35 +01:00
xen xen/x86: fix initial memory balloon target 2025-06-19 15:31:40 +02:00
zorro
Kconfig
Makefile