From: Sudip Mukherjee Date: Wed, 2 Sep 2015 10:44:06 +0000 (+0530) Subject: regulator: core: fix possible NULL dereference X-Git-Tag: omap-for-v4.3/fixes-rc5~97^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f8df6adf6c53abfa10e243cb289c34eb18ec581;p=pandora-kernel.git regulator: core: fix possible NULL dereference We were checking rdev->supply for NULL after dereferencing it. Lets check for rdev->supply along with _regulator_is_enabled() and call regulator_enable() only if rdev->supply is not NULL. Signed-off-by: Sudip Mukherjee Signed-off-by: Mark Brown --- Reading git-diff-tree failed