Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3ee13ee authored by Axel Lin's avatar Axel Lin Committed by Liam Girdwood
Browse files

regulator: tps65910: Fix a memory leak in tps65910_probe error path



Fix a memory leak if chip id is not matched.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent af8b244f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -903,6 +903,7 @@ static __devinit int tps65910_probe(struct platform_device *pdev)
		info = tps65911_regs;
	default:
		pr_err("Invalid tps chip version\n");
		kfree(pmic);
		return -ENODEV;
	}