drm/lima: fix lima_gem_wait() return value
authorVasily Khoruzhick <anarsoul@gmail.com>
Sun, 8 Sep 2019 02:48:00 +0000 (19:48 -0700)
committerQiang Yu <yuq825@gmail.com>
Tue, 10 Sep 2019 02:09:00 +0000 (10:09 +0800)
commit21670bd78a25001cf8ef2679b378c73fb73b904f
tree1cb86726896baf982ba912e29c313153d53681af
parenta3200debde5fda3e25f7e22cb2bc17a9280f7811
drm/lima: fix lima_gem_wait() return value

drm_gem_reservation_object_wait() returns 0 if it succeeds and -ETIME
if it timeouts, but lima driver assumed that 0 is error.

Cc: stable@vger.kernel.org
Fixes: a1d2a6339961e ("drm/lima: driver for ARM Mali4xx GPUs")
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190908024800.23229-1-anarsoul@gmail.com
drivers/gpu/drm/lima/lima_gem.c