linux/drivers/pci/pwrctrl
Geert Uytterhoeven ab81f2f79c PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure
When devm_add_action_or_reset() fails, it calls the passed cleanup
function.  Hence the caller must not repeat that cleanup.

Replace the "goto err_regulator_free" by the actual freeing, as there
will never be a need again for a second user of this label.

Fixes: 75996c92f4 ("PCI/pwrctrl: Add pwrctrl driver for PCI slots")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Marek Vasut <marek.vasut+renesas@mailbox.org> # V4H Sparrow Hawk
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://patch.msgid.link/7b1386e6162e70e6d631c87f6323d2ab971bc1c5.1755100324.git.geert+renesas@glider.be
2025-08-13 14:34:27 -05:00
..
core.c PCI/pwrctrl: Cancel outstanding rescan work when unregistering 2025-05-23 15:22:25 -05:00
Kconfig PCI/pwrctrl: Rename pwrctrl Kconfig symbols and slot module 2025-05-23 15:22:42 -05:00
Makefile PCI/pwrctrl: Rename pwrctrl Kconfig symbols and slot module 2025-05-23 15:22:42 -05:00
pci-pwrctrl-pwrseq.c
slot.c PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure 2025-08-13 14:34:27 -05:00