Home
last modified time | relevance | path

Searched hist:"5566174 cb10a5167d59b0793871cab7990b149b8" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpu/drm/tegra/
H A Dvic.cdiff 5566174cb10a5167d59b0793871cab7990b149b8 Fri Dec 10 18:54:44 CET 2021 Robin Murphy <robin.murphy@arm.com> drm/tegra: vic: Fix DMA API misuse

Upon failure, dma_alloc_coherent() returns NULL. If that does happen,
passing some uninitialised stack contents to dma_mapping_error() - which
belongs to a different API in the first place - has precious little
chance of detecting it.

Also include the correct header, because the fragile transitive
inclusion currently providing it is going to break soon.

Fixes: 20e7dce255e9 ("drm/tegra: Remove memory allocation from Falcon library")
CC: Thierry Reding <thierry.reding@gmail.com>
CC: Mikko Perttunen <mperttunen@nvidia.com>
CC: dri-devel@lists.freedesktop.org
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>