drm/ttm: Skip swapout if ttm object is not populated
authorxinhui pan <xinhui.pan@amd.com>
Fri, 21 May 2021 08:31:12 +0000 (16:31 +0800)
committerChristian König <christian.koenig@amd.com>
Wed, 26 May 2021 13:02:47 +0000 (15:02 +0200)
commit35f819d218035ddfbc71e7cf62a4849231701e58
treea273ae04385432af64e9e2dbd9112f007cb32116
parent7cfc4ea78fc103ea51ecbacd9236abb5b1c490d2
drm/ttm: Skip swapout if ttm object is not populated

Swapping a ttm object which has no backend pages makes no sense.

Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210521083112.33176-1-xinhui.pan@amd.com
CC: stable@kernel.org
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/ttm_device.c