]> www.infradead.org Git - users/jedix/linux-maple.git/commit
can: c_can: fix unbalanced runtime PM disable in error path
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Jan 2025 12:41:52 +0000 (13:41 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 8 Feb 2025 11:41:35 +0000 (12:41 +0100)
commit257a2cd3eb578ee63d6bf90475dc4f4b16984139
tree8c7c7516086644081a9713e5efce3b6a2e01870b
parent9bd24927e3eeb85642c7baa3b28be8bea6c2a078
can: c_can: fix unbalanced runtime PM disable in error path

Runtime PM is enabled as one of the last steps of probe(), so all
earlier gotos to "exit_free_device" label were not correct and were
leading to unbalanced runtime PM disable depth.

Fixes: 6e2fe01dd6f9 ("can: c_can: move runtime PM enable/disable to c_can_platform")
Cc: stable@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://patch.msgid.link/20250112-syscon-phandle-args-can-v1-1-314d9549906f@linaro.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can_platform.c