OSDN Git Service

drm/xen-front: Fix loop timeout
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 8 May 2018 09:28:29 +0000 (12:28 +0300)
committerOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Tue, 8 May 2018 11:10:01 +0000 (14:10 +0300)
commitf45140df31717bfab0974a722800d3ac0587b3f0
treef0e2f474529c176de141954d1cad71b0678e2c4b
parent18f20bc5303cf6276cce9ae1742f3835244ad087
drm/xen-front: Fix loop timeout

If the loop times out then we want to exit with "to" set to zero, but in
the current code it's set to -1.

Fixes: c575b7eeb89f ("drm/xen-front: Add support for Xen PV display frontend")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180508092829.GC661@mwanda
drivers/gpu/drm/xen/xen_drm_front.c