DF-1879 / fix.diff
diff --git a/sys/dev/drm/i915/vlv_dsi_pll.c b/sys/dev/drm/i915/vlv_dsi_pll.c --- a/sys/dev/drm/i915/vlv_dsi_pll.c +++ b/sys/dev/drm/i915/vlv_dsi_pll.c @@ -322,6 +322,10 @@ /* pixel_format and pipe_bpp should agree */ assert_bpp_mismatch(intel_dsi->pixel_format, pipe_bpp); + if (pipe_bpp == 0) { + DRM_ERROR("Invalid BPP(0)\n"); + return 0; + } pclk = DIV_ROUND_CLOSEST(dsi_clock * intel_dsi->lane_count, pipe_bpp); return pclk; |