regulator: tps65910: Fix a memory leak in tps65910_probe error path
Subsystems (2)
PATCH 1/1 regulator: tps65910: Fix a memory leak in tps65910_probe error path
Fix a memory leak if chip id is not matched.
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/tps65910-regulator.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/regulator/tps65910-regulator.c +1 -0
@@ -909,6 +909,7 @@ static __devinit int tps65910_probe(struct platform_device *pdev)break ;default :pr_err ("Invalid tps chip version\n" ); +kfree (pmic);return -ENODEV ; }
Signature · 1 line
1.7.4.1
Quoted 3 lines · Axel Lin
Fix a memory leak if chip id is not matched.
Signed-off-by Axel Lin <[email protected]>
Acked-by Mark Brown <[email protected]>
Liam Girdwood
AppliedQuoted 12 lines · Axel Lin
Fix a memory leak if chip id is not matched.
Signed-off-by Axel Lin <[email protected]>--- drivers/regulator/tps65910-regulator.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/regulator/tps65910-regulator.c +0
-0
drivers/regulator/tps65910-regulator.c static __devinit int tps65910_probe(struct platform_device *pdev) · line 915
Quoted 7 lines
drivers/regulator/tps65910-regulator.c +1
-0@@ -909,6 +909,7 @@ static __devinit int tps65910_probe(struct platform_device *pdev)break ;default :pr_err ("Invalid tps chip version\n" ); +kfree (pmic);return -ENODEV ; }
Applied.
Thanks
Liam