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)
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>

No differences found