]> Gentwo Git Trees - linux/.git/commit
mailbox: zynqmp-ipi: Fix out-of-bounds access in mailbox cleanup loop
authorHarini T <harini.t@amd.com>
Mon, 29 Sep 2025 07:37:22 +0000 (13:07 +0530)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 6 Oct 2025 23:14:00 +0000 (18:14 -0500)
commit0aead8197fc1a85b0a89646e418feb49a564b029
tree65055413f079159b7cc520641f628735c1002e1b
parent019e3f4550fc7d319a7fd03eff487255f8e8aecd
mailbox: zynqmp-ipi: Fix out-of-bounds access in mailbox cleanup loop

The cleanup loop was starting at the wrong array index, causing
out-of-bounds access.
Start the loop at the correct index for zero-indexed arrays to prevent
accessing memory beyond the allocated array bounds.

Fixes: 4981b82ba2ff ("mailbox: ZynqMP IPI mailbox controller")
Signed-off-by: Harini T <harini.t@amd.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/zynqmp-ipi-mailbox.c