From: Jani Nikula Date: Thu, 29 Apr 2010 07:55:10 +0000 (+0300) Subject: regulator: fix unset_regulator_supplies() to remove all matches X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47bd53f0e8008294ff58c5b37d713f25a8dc56aa;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- 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; } } }