drm/ttm: fix return value check
authorChristian König <christian.koenig@amd.com>
Fri, 9 Apr 2021 12:58:43 +0000 (14:58 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 12 Apr 2021 11:42:29 +0000 (13:42 +0200)
commita28e10ed99bcf57cbd55a6146367f7ea752af6be
treee41f6b1ddbd77b2a1d5f87452bc11bb515b11776
parentf4268a4bf1eecb4b38353f6310e561502e04f4dd
drm/ttm: fix return value check

The function returns the number of swapped pages here. Only abort when we get
a negative error code.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210409130113.1459-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_tt.c