summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2021-12-10 20:54:44 +0300
committerThierry Reding <treding@nvidia.com>2021-12-16 16:07:07 +0300
commit5566174cb10a5167d59b0793871cab7990b149b8 (patch)
tree497aa95c53205f1c64e48cdc9307abebae9fd065 /scripts/gdb/linux/utils.py
parent20c5a613185c98068e9ee5b011fb556dabd86e6e (diff)
downloadlinux-5566174cb10a5167d59b0793871cab7990b149b8.tar.xz
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions