From: jsg Date: Mon, 11 Apr 2022 04:01:52 +0000 (+0000) Subject: drm/dp: Fix off-by-one in register cache size X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5a84ec99b5e8fa6e2be52034bfa13d80f1afae72;p=openbsd 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 --- 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)