diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2025-08-13 17:56:25 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-08-13 14:34:27 -0500 |
commit | ab81f2f79c683c94bac622aafafbe8232e547159 (patch) | |
tree | 226e26e292d7c662366e93716df08cc75a95f542 /scripts/gdb/linux/modules.py | |
parent | 8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff) |
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: 75996c92f4de309f ("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
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions