Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

extcon: fsa9480: Fix wakeup source leaks on device unbind

Device can be unbound, so driver must also release memory for the wakeup
source.

Link: https://lore.kernel.org/lkml/20250501-device-wakeup-leak-extcon-v2-3-7af77802cbea@linaro.org/
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Krzysztof Kozlowski and committed by
Chanwoo Choi
6f982d55 93ccf3f2

+1 -1
+1 -1
drivers/extcon/extcon-fsa9480.c
··· 317 317 return ret; 318 318 } 319 319 320 - device_init_wakeup(info->dev, true); 320 + devm_device_init_wakeup(info->dev); 321 321 fsa9480_detect_dev(info); 322 322 323 323 return 0;