projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c7115c
)
mfd: max77705: Fix wakeup source leaks on device unbind
author
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Sun, 6 Apr 2025 19:50:13 +0000
(21:50 +0200)
committer
Lee Jones
<lee@kernel.org>
Fri, 23 May 2025 07:49:10 +0000
(08:49 +0100)
Device can be unbound, so driver must also release memory for the wakeup
source.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link:
https://lore.kernel.org/r/20250406-mfd-device-wakekup-leak-v1-5-318e14bdba0a@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/max77705.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/max77705.c
b/drivers/mfd/max77705.c
index
60c457c
..
6b263ba
100644
(file)
--- a/
drivers/mfd/max77705.c
+++ b/
drivers/mfd/max77705.c
@@
-131,7
+131,9
@@
static int max77705_i2c_probe(struct i2c_client *i2c)
if (ret)
return dev_err_probe(dev, ret, "Failed to register child devices\n");
- device_init_wakeup(dev, true);
+ ret = devm_device_init_wakeup(dev);
+ if (ret)
+ return dev_err_probe(dev, ret, "Failed to init wakeup\n");
return 0;
}