linux_dsm_epyc7002/drivers/scsi/ufs
Gustavo A. R. Silva 727535903b scsi: ufs: ufshcd: fix potential NULL pointer dereference in ufshcd_config_vreg
_vreg_ is being dereferenced before it is null checked, hence there is a
potential null pointer dereference.

Fix this by moving the pointer dereference after _vreg_ has been null
checked.

This issue was detected with the help of Coccinelle.

Fixes: aa49761309 ("ufs: Add regulator enable support")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-11-21 23:00:44 -05:00
..
Kconfig scsi: ufs: Kconfig fix 2016-09-29 21:57:08 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tc-dwc-g210-pci.c scsi: ufs: Tidy clocks list head usage 2017-06-12 20:48:08 -04:00
tc-dwc-g210-pltfrm.c
tc-dwc-g210.c scsi: ufs: tc-dwc-g210: make arrays static, reduces object code size 2017-09-15 15:41:45 -04:00
tc-dwc-g210.h
ufs_quirks.h scsi: ufs: refactor device descriptor reading 2017-01-10 23:13:48 -05:00
ufs-qcom.c SCSI misc on 20171114 2017-11-14 16:23:44 -08:00
ufs-qcom.h scsi: ufs-qcom: Remove uses of UFS_BIT() macro 2017-10-11 13:44:31 -04:00
ufs.h scsi: ufs: Factor out ufshcd_read_desc_param 2017-03-01 21:43:22 -05:00
ufshcd-dwc.c
ufshcd-dwc.h
ufshcd-pci.c scsi: ufshcd-pci: Add Intel CNL support 2017-06-12 21:08:26 -04:00
ufshcd-pltfrm.c scsi: ufs: Tidy clocks list head usage 2017-06-12 20:48:08 -04:00
ufshcd-pltfrm.h
ufshcd.c scsi: ufs: ufshcd: fix potential NULL pointer dereference in ufshcd_config_vreg 2017-11-21 23:00:44 -05:00
ufshcd.h scsi: ufs: Change HCI macro to actual bit position 2017-10-11 13:44:31 -04:00
ufshci-dwc.h
ufshci.h scsi: ufs: Remove unused UFS_BIT() macro 2017-10-11 13:44:31 -04:00
unipro.h scsi: ufs: ensure that host pa_tactivate is higher than device 2016-11-29 12:06:56 -05:00