]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/tegra: nvdec: Fix dma_alloc_coherent error check
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 2 Jul 2025 02:08:07 +0000 (11:08 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:32:11 +0000 (18:32 +0200)
commit61b8d20962d00b7df117011c52f97cbb9c76a669
treeb2a2d6306ac638fbed638471ad0766ee3befac40
parentadf08c96b963c7cd7ec1ee1c0c556228d9bedaae
drm/tegra: nvdec: Fix dma_alloc_coherent error check

[ Upstream commit 44306a684cd1699b8562a54945ddc43e2abc9eab ]

Check for NULL return value with dma_alloc_coherent, in line with
Robin's fix for vic.c in 'drm/tegra: vic: Fix DMA API misuse'.

Fixes: 46f226c93d35 ("drm/tegra: Add NVDEC driver")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250702-nvdec-dma-error-check-v1-1-c388b402c53a@nvidia.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tegra/nvdec.c