regulator: Fix memory leak in set_machine_constraints() error paths
authorAxel Lin <axel.lin@gmail.com>
Fri, 15 Jul 2011 02:50:43 +0000 (10:50 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 22 Jul 2011 10:43:59 +0000 (11:43 +0100)
Properly kfree rdev->constraints in all set_machine_constraints() error paths.
Also properly kfree rdev->constraints in regulator_register() error paths.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>

No differences found