drm/ttm: Fix address passed to dma_mapping_error() in ttm_pool_map()
authorJeremy Cline <jcline@redhat.com>
Mon, 11 Jan 2021 16:40:33 +0000 (11:40 -0500)
committerChristian König <christian.koenig@amd.com>
Mon, 11 Jan 2021 20:18:27 +0000 (21:18 +0100)
commit843010a815e87b45fc6b64848f02e42f6aee3f22
treebfb44b94d262dc148fd279faf49c0f36289275a9
parenta0adc8eabb402cfb9f32d15edd9f65f65e35cdce
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>
drivers/gpu/drm/ttm/ttm_pool.c