From 5a84ec99b5e8fa6e2be52034bfa13d80f1afae72 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 11 Apr 2022 04:01:52 +0000 Subject: [PATCH] drm/dp: Fix off-by-one in register cache size From Kees Cook e912d697400c5f4bc8c1c8090416dad6c59cb28c in linux 5.15.y/5.15.33 d4da1f27396fb1dde079447a3612f4f512caed07 in mainline linux --- sys/dev/pci/drm/include/drm/drm_dp_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/include/drm/drm_dp_helper.h b/sys/dev/pci/drm/include/drm/drm_dp_helper.h index 7678ea682a6..500994ab8ec 100644 --- a/sys/dev/pci/drm/include/drm/drm_dp_helper.h +++ b/sys/dev/pci/drm/include/drm/drm_dp_helper.h @@ -455,7 +455,7 @@ struct drm_panel; # define DP_FEC_BIT_ERROR_COUNT_CAP (1 << 3) /* DP-HDMI2.1 PCON DSC ENCODER SUPPORT */ -#define DP_PCON_DSC_ENCODER_CAP_SIZE 0xC /* 0x9E - 0x92 */ +#define DP_PCON_DSC_ENCODER_CAP_SIZE 0xD /* 0x92 through 0x9E */ #define DP_PCON_DSC_ENCODER 0x092 # define DP_PCON_DSC_ENCODER_SUPPORTED (1 << 0) # define DP_PCON_DSC_PPS_ENC_OVERRIDE (1 << 1) -- 2.20.1