drm/dp: Fix off-by-one in register cache size
authorjsg <jsg@openbsd.org>
Mon, 11 Apr 2022 04:01:52 +0000 (04:01 +0000)
committerjsg <jsg@openbsd.org>
Mon, 11 Apr 2022 04:01:52 +0000 (04:01 +0000)
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

index 7678ea6..500994a 100644 (file)
@@ -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)