]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: ufs-mediatek: Fix invalid access to vccqx
authorAlice Chao <alice.chao@mediatek.com>
Thu, 23 Jun 2022 03:50:52 +0000 (11:50 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 28 Jun 2022 03:17:36 +0000 (23:17 -0400)
commit5e23418de8fe21c66c1a78a03e57ccc0d4fe38e0
tree4bfe2764dfdcdbabac58b45049a3ad23aa5404a2
parentfbe6abe9546781597d186c141a045e2d5fe64a65
scsi: ufs: ufs-mediatek: Fix invalid access to vccqx

NULL pointer access issue was found for the regulator released
by ufs_mtk_vreg_fix_vccq(). Simply fix this issue by clearing
the released vreg pointer in ufs_hba struct.

Link: https://lore.kernel.org/r/20220623035052.18802-9-stanley.chu@mediatek.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Alice Chao <alice.chao@mediatek.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-mediatek.c