summaryrefslogtreecommitdiff
path: root/rust/helpers/vmalloc.c
diff options
context:
space:
mode:
authorAlice Chao <alice.chao@mediatek.com>2025-08-11 21:11:26 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2025-08-14 22:49:13 -0400
commit5863638598f5e4f64d2f85b03f376383ca1f2ab7 (patch)
tree900fa39040bc87d75a54c9ed8aee383c49084785 /rust/helpers/vmalloc.c
parent878ed88c50bfb14d972dd3b86a1c8188c58de4e5 (diff)
scsi: ufs: host: mediatek: Fix invalid access in vccqx handling
Add a NULL check before accessing the 'vccqx' pointer to prevent invalid memory access. This ensures that the function safely handles cases where 'vccq' and 'vccq2' are not initialized, improving the robustness of the power management code. Signed-off-by: Alice Chao <alice.chao@mediatek.com> Reviewed-by: Peter Wang <peter.wang@mediatek.com> Signed-off-by: Peter Wang <peter.wang@mediatek.com> Link: https://lore.kernel.org/r/20250811131423.3444014-11-peter.wang@mediatek.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions