diff --git a/drivers/gpu/drm/omapdrm/dss/dpi.c b/drivers/gpu/drm/omapdrm/dss/dpi.c index 7953e6a523463080fc22569bd89dc3f7918c6dc4..557cf3bdcc4e4e5ba3068217d3cc5d6c97155a93 100644 --- a/drivers/gpu/drm/omapdrm/dss/dpi.c +++ b/drivers/gpu/drm/omapdrm/dss/dpi.c @@ -513,6 +513,9 @@ static int dpi_check_timings(struct omap_dss_device *dssdev, struct dpi_clk_calc_ctx ctx; bool ok; + if (timings->x_res % 8 != 0) + return -EINVAL; + if (mgr && !dispc_mgr_timings_ok(mgr->id, timings)) return -EINVAL;