]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
extcon: adc-jack: Fix wakeup source leaks on device unbind
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 1 May 2025 14:33:21 +0000 (16:33 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 26 Aug 2025 10:51:36 +0000 (19:51 +0900)
commit78b6a991eb6c6f19ed7d0ac91cda3b3b117fda8f
tree5153f18217f34b2a9c2f2309a1c4fed26aee7312
parent1b237f190eb3d36f52dffe07a40b5eb210280e00
extcon: adc-jack: Fix wakeup source leaks on device unbind

Device can be unbound, so driver must also release memory for the wakeup
source.  Do not use devm interface, because it would change the order of
cleanup.

Link: https://lore.kernel.org/lkml/20250501-device-wakeup-leak-extcon-v2-1-7af77802cbea@linaro.org/
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-adc-jack.c