projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bae8f0
)
power_supply: 88pm860x: Fix leaked power supply on probe fail
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Tue, 27 Jan 2015 15:51:54 +0000
(16:51 +0100)
committer
Sebastian Reichel
<sre@kernel.org>
Wed, 28 Jan 2015 14:08:10 +0000
(15:08 +0100)
Driver forgot to unregister power supply if request_threaded_irq()
failed in probe(). In such case the memory associated with power supply
leaked.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Fixes: a830d28b48bf ("power_supply: Enable battery-charger for 88pm860x")
Cc: <stable@vger.kernel.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/88pm860x_charger.c
patch
|
blob
|
history
diff --git
a/drivers/power/88pm860x_charger.c
b/drivers/power/88pm860x_charger.c
index 650930e4fa798eff37d2d6d7d14fe8d9b7e08368..734ec4afa14d63ef88f3932ec2faae6774d1d5cc 100644
(file)
--- a/
drivers/power/88pm860x_charger.c
+++ b/
drivers/power/88pm860x_charger.c
@@
-711,6
+711,7
@@
static int pm860x_charger_probe(struct platform_device *pdev)
return 0;
out_irq:
+ power_supply_unregister(&info->usb);
while (--i >= 0)
free_irq(info->irq[i], info);
out: