diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-11-22 20:56:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-11 15:35:36 +0300 |
commit | ae116f21b24a9fc09e86a2f82a99ca08c19a5bf5 (patch) | |
tree | dbaf7ae3dc91af17e3178b69c1d768f58d86111d /include/sound/soc-component.h | |
parent | 5b442859ab803dc48dcfb0b1d9bd6be5d8d56941 (diff) | |
download | linux-ae116f21b24a9fc09e86a2f82a99ca08c19a5bf5.tar.xz |
drm/rect: Avoid division by zero
commit 433480c1afd44f3e1e664b85063d98cefeefa0ed upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/sound/soc-component.h')
0 files changed, 0 insertions, 0 deletions