diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2014-11-18 15:02:46 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-26 11:32:32 +0100 |
commit | 3e660fbef96f53d01ba022b1b75b72759a02983e (patch) | |
tree | e945d6e509e0b820a6150bc7f91398d519969fb0 /Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt | |
parent | ufs: ensure clk gating work is finished before module unloading (diff) | |
download | linux-3e660fbef96f53d01ba022b1b75b72759a02983e.tar.xz linux-3e660fbef96f53d01ba022b1b75b72759a02983e.zip |
ufs: fix NULL dereference when no regulators are defined
If no voltage supply regulators are defined for the UFS devices (assumed
they are always-on), ufshcd_config_vreg_load() can be called on
suspend/resume paths with vreg == NULL as hba->vreg_info.vcc* equal to
NULL, and it causes NULL pointer dereference.
This fixes it by making ufshcd_config_vreg_{h,l}pm noop when no regulators
are defined.
Signed-off-by: Akinobu Mita <mita@fixstars.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt')
0 files changed, 0 insertions, 0 deletions