drm mode: Return -errno on drmIoctl() failure
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Jul 2010 21:38:54 +0000 (22:38 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Jul 2010 21:51:33 +0000 (22:51 +0100)
commitb803918f3f77c62edf22e78cb2095be399753423
tree7b7e5de8b1c71dd8155e78bb9f2fe1da0e37c797
parentc570b4b97b8ff71da9294aaf8242ed665f0c09c3
drm mode: Return -errno on drmIoctl() failure

The high layers expect to receive a status code on error (on the
pessimistic assumption that the errno value will have been overwritten
by the time the failure is propagated all the way up), so convert
xf86drmMode.c to return -errno on an ioctl error and be consistent with
the rest of the libdrm API.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
xf86drmMode.c