drm: drm_stub: Fixing return value if driver master_set call failed
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 26 Jun 2013 15:58:59 +0000 (17:58 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Jun 2013 11:03:16 +0000 (21:03 +1000)
commit53ef1600bdabfc4ba4ce0cc5f3b4a7cec55d1e98
tree1b472149273b9620b54b6388928be8491f390ffa
parentdc0216445cdc5b937b78a02f1145a2fbcf92e9d6
drm: drm_stub: Fixing return value if driver master_set call failed

When dev->driver->master_set() failed ioctl call return 0
but the caller is not the DRM-Master because file_priv->is_master = 0.
Fix that by returning to ioctl caller the driver master_set error code.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_stub.c