drm/i915/gen9: Avoid using negative array index in skl_update_plane()
authorImre Deak <imre.deak@intel.com>
Thu, 12 May 2016 13:18:49 +0000 (16:18 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 13 May 2016 12:17:58 +0000 (15:17 +0300)
commit7494bcdca2f4e9a2f2e66b02cec5600ac8021c07
treed46ff24f0977d37cb018aa7fd867bc6e191b706b
parente075a32f515becef66dc849f5eca47409ccf5473
drm/i915/gen9: Avoid using negative array index in skl_update_plane()

scaler_id may be negative as shown by conditions later in the function,
so don't use it as an array index in that case.

v2:
- Remove ps_ctrl while at it (Ville).

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1463059132-1720-2-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_sprite.c