diff options
| author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2025-05-01 16:33:22 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-13 15:37:06 -0500 |
| commit | 403873cd0bb4b5304b06253cbc85d6740f47d808 (patch) | |
| tree | d587c0cb0aee806547a4208382e9bc8abc6f4143 /drivers/extcon | |
| parent | 9d909bc7b4e88dd42aec65b4f3a422d448cfa1c6 (diff) | |
| download | linux-403873cd0bb4b5304b06253cbc85d6740f47d808.tar.gz linux-403873cd0bb4b5304b06253cbc85d6740f47d808.tar.bz2 linux-403873cd0bb4b5304b06253cbc85d6740f47d808.zip | |
extcon: axp288: Fix wakeup source leaks on device unbind
[ Upstream commit 93ccf3f2f22ceaa975b462156f98527febee4fe5 ]
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-2-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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/extcon')
| -rw-r--r-- | drivers/extcon/extcon-axp288.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index d3bcbe839c09..19856dddade6 100644 --- a/drivers/extcon/extcon-axp288.c +++ b/drivers/extcon/extcon-axp288.c @@ -470,7 +470,7 @@ static int axp288_extcon_probe(struct platform_device *pdev) if (ret < 0) return ret; - device_init_wakeup(dev, true); + devm_device_init_wakeup(dev); platform_set_drvdata(pdev, info); return 0; |
