diff options
author | Jeremy Cline <jcline@redhat.com> | 2021-01-11 17:40:33 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-01-11 21:18:27 +0100 |
commit | 843010a815e87b45fc6b64848f02e42f6aee3f22 (patch) | |
tree | bfb44b94d262dc148fd279faf49c0f36289275a9 /drivers/gpu/drm/drm_plane.c | |
parent | dma-buf: cma_heap: Fix memory leak in CMA heap (diff) | |
download | linux-843010a815e87b45fc6b64848f02e42f6aee3f22.tar.xz linux-843010a815e87b45fc6b64848f02e42f6aee3f22.zip |
drm/ttm: Fix address passed to dma_mapping_error() in ttm_pool_map()
check_unmap() is producing a warning about a missing map error check.
The return value from dma_map_page() should be checked for an error, not
the caller-provided dma_addr.
Fixes: d099fc8f540a ("drm/ttm: new TT backend allocation pool v3")
Signed-off-by: Jeremy Cline <jcline@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/413432/
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/drm_plane.c')
0 files changed, 0 insertions, 0 deletions