OSDN Git Service

drm/ttm: Change ttm_tt page allocations to return errors
authorTom St Denis <tom.stdenis@amd.com>
Thu, 25 Jan 2018 18:24:03 +0000 (13:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:18:57 +0000 (14:18 -0500)
commit5b4262d7a2d744e717c0e360a652fb10a8197bb7
treea981690e89a47b668e379e07aefcfa1e16afea41
parent420457acfb3060990bfca2af3d63730c26739de0
drm/ttm: Change ttm_tt page allocations to return errors

Explicitly return errors in ttm_tt_alloc_page_directory() and
ttm_dma_tt_alloc_page_directory() instead of relying on
further logic to detect errors.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_tt.c