Re: [PATCH] drm/amd/display: Fix off by one in hdmi_14_process_transaction()

2021-03-03 Thread Alex Deucher
> ; dri-devel@lists.freedesktop.org > ; kernel-janit...@vger.kernel.org > > Subject: [PATCH] drm/amd/display: Fix off by one in > hdmi_14_process_transaction() > > The hdcp_i2c_offsets[] array did not have an entry for > HDCP_MESSAGE_ID_WRITE_CONTENT_STREAM_TYPE so it le

Re: [PATCH] drm/amd/display: Fix off by one in hdmi_14_process_transaction()

2021-03-02 Thread Lakha, Bhawanpreet
Airlie ; Daniel Vetter ; Dan Carpenter ; Lakha, Bhawanpreet ; Siqueira, Rodrigo ; Liu, Wenjing ; amd-...@lists.freedesktop.org ; dri-devel@lists.freedesktop.org ; kernel-janit...@vger.kernel.org Subject: [PATCH] drm/amd/display: Fix off by one in hdmi_14_process_transaction

[PATCH] drm/amd/display: Fix off by one in hdmi_14_process_transaction()

2021-03-02 Thread Dan Carpenter
The hdcp_i2c_offsets[] array did not have an entry for HDCP_MESSAGE_ID_WRITE_CONTENT_STREAM_TYPE so it led to an off by one read overflow. I added an entry and copied the 0x0 value for the offset from similar code in drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c. I also declared several of