drm/qxl: fix erroneous return value
authorAnton Protopopov <a.s.protopopov@gmail.com>
Sun, 7 Feb 2016 04:25:28 +0000 (23:25 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Feb 2016 05:39:35 +0000 (15:39 +1000)
The qxl_gem_prime_mmap() function returns ENOSYS instead of -ENOSYS

Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_prime.c

index 3d031b50a8fd13dd8203f4de284ecedbb95ecbcc..9f029dda1f071431a9d90894096ab4a3f89bbe0a 100644 (file)
@@ -68,5 +68,5 @@ int qxl_gem_prime_mmap(struct drm_gem_object *obj,
                       struct vm_area_struct *area)
 {
        WARN_ONCE(1, "not implemented");
-       return ENOSYS;
+       return -ENOSYS;
 }