]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm: Fix dma_free_attrs() buffer size
authorThomas Fourier <fourier.thomas@gmail.com>
Thu, 26 Feb 2026 09:57:11 +0000 (10:57 +0100)
committerRob Clark <robin.clark@oss.qualcomm.com>
Tue, 3 Mar 2026 18:39:06 +0000 (10:39 -0800)
commite4eb6e4dd6348dd00e19c2275e3fbaed304ca3bd
treee28c705d972b867d3a96dc8cd4c09e451f44b3e9
parent20f644f42e3b8e729d3c3199d48e75c0b257de8f
drm/msm: Fix dma_free_attrs() buffer size

The gpummu->table buffer is alloc'd with size TABLE_SIZE + 32 in
a2xx_gpummu_new() but freed with size TABLE_SIZE in
a2xx_gpummu_destroy().

Change the free size to match the allocation.

Fixes: c2052a4e5c99 ("drm/msm: implement a2xx mmu")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/707340/
Message-ID: <20260226095714.12126-2-fourier.thomas@gmail.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/adreno/a2xx_gpummu.c