Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/dp: Verify valid pipe BPP range

Ensure that the pipe BPP range is valid after calculating the minimum
and maximum pipe BPP values separately.

Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260209133817.395823-2-imre.deak@intel.com

Imre Deak 7229474d 08b7ef16

+9
+9
drivers/gpu/drm/i915/display/intel_dp.c
··· 2745 2745 crtc_state))); 2746 2746 } 2747 2747 2748 + if (limits->pipe.min_bpp <= 0 || 2749 + limits->pipe.min_bpp > limits->pipe.max_bpp) { 2750 + drm_dbg_kms(display->drm, "[CONNECTOR:%d:%s] Invalid pipe bpp range: %d-%d\n", 2751 + connector->base.base.id, connector->base.name, 2752 + limits->pipe.min_bpp, limits->pipe.max_bpp); 2753 + 2754 + return false; 2755 + } 2756 + 2748 2757 if (dsc && !intel_dp_dsc_compute_pipe_bpp_limits(connector, limits)) 2749 2758 return false; 2750 2759