summaryrefslogtreecommitdiff
path: root/kernel/trace
diff options
context:
space:
mode:
authorStanley Chu <stanley.chu@mediatek.com>2020-07-24 17:16:27 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2020-07-29 05:59:57 +0300
commit0255b1e3d84962f8f8d19f9e2768a8a4f0de7487 (patch)
tree91007115bb7c6099efd5e4904e367f0c9cdd5aae /kernel/trace
parent68e12e5f61354eb42cfffbc20a693153fc39738e (diff)
downloadlinux-0255b1e3d84962f8f8d19f9e2768a8a4f0de7487.tar.xz
scsi: ufs-mediatek: Prevent LPM operation on undeclared VCC
In some platforms, VCC regulator may not be declared in device tree to keep itself "always-on". In this case, hba->vreg_info.vcc is NULL and shall not be operated during any flow. Prevent possible NULL hba->vreg_info.vcc access in LPM mode by checking if it is valid first. Link: https://lore.kernel.org/r/20200724141627.20094-1-stanley.chu@mediatek.com Reviewed-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions