]> Gentwo Git Trees - linux/.git/commit
iommu/mediatek-v1: add missing larb count sanity check
authorJohan Hovold <johan@kernel.org>
Mon, 20 Oct 2025 04:53:14 +0000 (06:53 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 17 Nov 2025 08:49:44 +0000 (09:49 +0100)
commitab31cf041e4916bdf5c6b60a5286521c806a7033
tree94b9eaa40a98d24570f04d836a0f0a77ab4fa5a4
parent46207625c9f33da0e43bb4ae1e91f0791b6ed633
iommu/mediatek-v1: add missing larb count sanity check

Add the missing larb count sanity check to avoid writing beyond a fixed
sized array in case of a malformed devicetree.

Acked-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/mtk_iommu_v1.c