]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/virtio: fix error check
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 14 Feb 2020 08:01:00 +0000 (09:01 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 14 Feb 2020 09:24:47 +0000 (10:24 +0100)
commit2c77ae22ff8af10d84ae1e36e4ee0592061c9f86
treebb3adb7e4b8c9e5fa38a92b8b0d96367f380c82e
parente11f5bd8228fc3760c221f940b9f6365dbf3e7ed
drm/virtio: fix error check

The >= compare op must happen in cpu byte order, doing it in
little endian fails on big endian machines like s390.

Reported-by: Sebastian Mitterle <smitterl@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200214080100.1273-1-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_vq.c