]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: staging/ipu7: Fix the loop bound in l2 table alloc
authorBingbu Cao <bingbu.cao@intel.com>
Tue, 23 Dec 2025 07:23:03 +0000 (15:23 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 13 Jan 2026 11:47:55 +0000 (12:47 +0100)
commit98cc19a353abc8b48b7d58fd7a455e09e7c3aba3
treed8daa3762465a9c5d7012af2fe45f63bf78cdb3c
parentf7923e6bafcad686adb51cc100ba1860f8b43922
media: staging/ipu7: Fix the loop bound in l2 table alloc

This patch fixes the incorrect loop bound in alloc_l2_pt(). When
initializing L2 page table entries, the loop was incorrectly using
ISP_L1PT_PTES instead of ISP_L2PT_PTES though the ISP_L1PT_PTES is
equal to ISP_L2PT_PTES.

Fixes: 71d81c25683a ("media: staging/ipu7: add IPU7 DMA APIs and MMU mapping")
Cc: stable@vger.kernel.org
Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/staging/media/ipu7/ipu7-mmu.c