diff options
author | 2015-09-02 16:14:06 +0530 | |
---|---|---|
committer | 2015-09-02 13:19:04 +0100 | |
commit | 9f8df6adf6c53abfa10e243cb289c34eb18ec581 (patch) | |
tree | edf72419b52174ef970a8c0925c54560eee881d7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge remote-tracking branch 'regulator/topic/tps6586x' into regulator-next (diff) | |
download | linux-dev-9f8df6adf6c53abfa10e243cb289c34eb18ec581.tar.xz linux-dev-9f8df6adf6c53abfa10e243cb289c34eb18ec581.zip |
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 <sudip@vectorindia.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions