aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorPeter Wang <[email protected]>2025-08-04 06:01:54 +0000
committerMartin K. Petersen <[email protected]>2025-08-06 02:10:14 +0000
commit7ec2bd6cd2d0ce6d6224519f895cb932ed5af667 (patch)
treed42562afe02051d5f259abc095bae09350437f80 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentscsi: lpfc: Remove redundant assignment to avoid memory leak (diff)
downloadkernel-7ec2bd6cd2d0ce6d6224519f895cb932ed5af667.tar.gz
kernel-7ec2bd6cd2d0ce6d6224519f895cb932ed5af667.zip
scsi: ufs: mediatek: Fix out-of-bounds access in MCQ IRQ mapping
Address a potential out-of-bounds access issue when accessing 'host->mcq_intr_info[q_index]'. The value of 'q_index' might exceed the valid array bounds if 'q_index == nr'. Correct condition to 'q_index >= nr' to prevent accessing invalid memory. Fixes: 66e26a4b8a77 ("scsi: ufs: host: mediatek: Set IRQ affinity policy for MCQ mode") Cc: [email protected] Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Peter Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions