From: Heiko Stübner Date: Fri, 14 Oct 2011 16:00:29 +0000 (+0200) Subject: regulator: Fix possible nullpointer dereference in regulator_enable() X-Git-Tag: v3.2-rc1~101^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1685e4e2c3854782272f32b71f2f3eff5c6e0d0;p=pandora-kernel.git regulator: Fix possible nullpointer dereference in regulator_enable() In the case where _regulator_enable returns an error it was not checked if a supplying regulator exists before trying to disable it, leading to a null pointer-dereference if no supplying regulator existed. Signed-off-by: Heiko Stuebner Signed-off-by: Mark Brown --- Reading git-diff-tree failed