drm/i915: Propagate invalid setcrtc cloning errors back to userspace
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 17 Nov 2014 17:59:28 +0000 (09:59 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Nov 2014 20:20:49 +0000 (21:20 +0100)
commit6ac0483b35bfc7546398d1198b65ed7be17f3cc5
treed1d58e33b11345b791ad79fd1e56c8dec1e2865d
parent134ffa44d1ad244216a114506a67dcfc7c80a90f
drm/i915: Propagate invalid setcrtc cloning errors back to userspace

When invalid cloning configurations were detected during modeset, we
never copied the error code into the return value variable, leading us
to return 0 (success) to userspace.

This regression has been introduced in

commit 50f5275698df4490046cc5b4ed2018abb642a803
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Fri Nov 7 13:11:00 2014 -0800

    drm/i915: use compute_config in set_config v4

Testcase: igt/kms_setmode
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86226
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c