From 47bd53f0e8008294ff58c5b37d713f25a8dc56aa Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 29 Apr 2010 10:55:10 +0300 Subject: [PATCH] regulator: fix unset_regulator_supplies() to remove all matches Remove all matching consumer supplies, not just the first, to not leave dangling pointers. Signed-off-by: Jani Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- drivers/regulator/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 2a3494f72465..a50672f33afa 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1013,7 +1013,6 @@ static void unset_regulator_supplies(struct regulator_dev *rdev) list_del(&node->list); kfree(node->dev_name); kfree(node); - return; } } } -- 2.39.5