[PATCH v1] ufs: host: mediatek: Fix out-of-bounds access in MCQ IRQ mapping
Martin K. Petersen
martin.petersen at oracle.com
Tue Aug 5 19:10:57 PDT 2025
Peter,
>
> This patch addresses 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'. The condition is
> corrected to 'q_index >= nr' to prevent accessing invalid memory.
Applied to 6.17/scsi-staging, thanks!
--
Martin K. Petersen
More information about the Linux-mediatek
mailing list