drm/i915/display: Check source height is > 0
authorDrew Davenport <ddavenport@chromium.org>
Tue, 27 Dec 2022 05:53:24 +0000 (22:53 -0700)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 12 Jan 2023 18:17:37 +0000 (20:17 +0200)
commit0fe76b198d482b41771a8d17b45fb726d13083cf
tree260d73bf7fad74ecdbef0708eb97854ee0c9e158
parentf71c9b7bc35ff7c1fb68d114903876eec658439b
drm/i915/display: Check source height is > 0

The error message suggests that the height of the src rect must be at
least 1. Reject source with height of 0.

Cc: stable@vger.kernel.org
Signed-off-by: Drew Davenport <ddavenport@chromium.org>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221226225246.1.I15dff7bb5a0e485c862eae61a69096caf12ef29f@changeid
drivers/gpu/drm/i915/display/skl_universal_plane.c