From: Javier Martinez Canillas Date: Wed, 15 Jul 2015 14:10:29 +0000 (+0200) Subject: regulator: core: Fix memory leak in regulator_resolve_supply() X-Git-Tag: omap-for-v4.3/fixes-merge-window~196^2^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36a1f1b6ddc6d1442424e29548e790633ca39c7b;p=pandora-kernel.git regulator: core: Fix memory leak in regulator_resolve_supply() The regulator_resolve_supply() function calls set_supply() which in turn calls create_regulator() to allocate a supply regulator. If an error occurs after set_supply() succeeded, the allocated regulator has to be freed before propagating the error code. Signed-off-by: Javier Martinez Canillas Signed-off-by: Mark Brown --- Reading git-diff-tree failed