Ville Syrjälä 433480c1af drm/rect: Avoid division by zero
Check for zero width/height destination rectangle in
drm_rect_clip_scaled() to avoid a division by zero.

Cc: stable@vger.kernel.org
Fixes: f96bdf564f3e ("drm/rect: Handle rounding errors in drm_rect_clip_scaled, v3.")
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Testcase: igt/kms_selftest/drm_rect_clip_scaled_div_by_zero
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191122175623.13565-2-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@st.com>
2019-11-28 13:33:23 +02:00
..
2019-10-04 17:04:05 +01:00
2019-11-25 22:36:14 +01:00
2019-10-03 16:38:50 +02:00
2019-09-19 16:24:24 -07:00
2019-11-20 17:40:32 +01:00
2019-11-27 19:10:06 +01:00
2019-10-23 12:10:05 +02:00
2019-09-16 15:14:43 +02:00
2019-11-25 10:04:41 +01:00
2019-11-25 22:36:14 +01:00
2019-11-25 10:04:41 +01:00
2019-11-04 18:39:58 +01:00
2019-11-19 22:25:55 +01:00
2019-07-22 21:24:10 +02:00
2019-10-08 18:29:00 +02:00
2019-07-22 21:24:10 +02:00
2019-09-19 16:24:24 -07:00
2019-11-28 13:33:23 +02:00