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>
Wed, 21 Apr 2021 13:35:11 +0000 (15:35 +0200)
commit8a9d24f222ea1b1c20dffbc62bff736f3f94b768
treee90dc78438beba2e44f7c7cb345c01527f0c3cee
parent5a7bd25992e48aacdbd73c09a54f15cd163e92cd
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