drm/ttm: fix broken merge between drm-next and drm-misc-next
authorChristian König <christian.koenig@amd.com>
Wed, 19 Aug 2020 13:27:48 +0000 (15:27 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 20 Aug 2020 12:03:10 +0000 (14:03 +0200)
commit0b06286579b81449b1e8f14f88d3a8db091fd443
tree9b2a34ce9e74eb386987ca6c124ab8caa09ad50a
parentcdd296cdae1af2d27dae3fcfbdf12c5252ab78cf
drm/ttm: fix broken merge between drm-next and drm-misc-next

drm-next reverted the changes to ttm_tt_create() to do the
NULL check inside the function, but drm-misc-next adds new
users of this approach.

Re-apply the NULL check change inside the function to fix this.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/386628/
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_tt.c