OpenCloudOS-Kernel/drivers/scsi/ufs
Akinobu Mita 3e660fbef9 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>
2014-11-26 11:32:32 +01:00
..
Kconfig ufs: Add support for clock scaling using devfreq framework 2014-10-01 13:11:25 +02:00
Makefile [SCSI] ufs: Add Platform glue driver for ufshcd 2013-05-02 16:16:50 -07:00
ufs.h ufs: add UFS power management support 2014-10-01 13:11:23 +02:00
ufshcd-pci.c ufs: add UFS power management support 2014-10-01 13:11:23 +02:00
ufshcd-pltfrm.c scsi: ufs: fix static checker warning in ufshcd_parse_clock_info 2014-11-20 17:47:41 +01:00
ufshcd.c ufs: fix NULL dereference when no regulators are defined 2014-11-26 11:32:32 +01:00
ufshcd.h ufs: fix reference counting of W-LUs 2014-11-20 17:01:31 +01:00
ufshci.h ufs: add UFS power management support 2014-10-01 13:11:23 +02:00
unipro.h ufs: definitions for phy interface 2014-10-01 13:11:26 +02:00