]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/bridge: it6505: fix HDCP V match check is not performed correctly
authorHermes Wu <Hermes.wu@ite.com.tw>
Tue, 21 Jan 2025 07:01:51 +0000 (15:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:13 +0000 (14:39 +0200)
commitdd8e6445e4e33e0f363d614bd02a7e6195660bcc
tree602e2a345ec3c5816f0a51ca8b4ccf29b7ae8781
parent69e90c1e33918877d3916a26b82febc13808d0da
drm/bridge: it6505: fix HDCP V match check is not performed correctly

[ Upstream commit a5072fc77fb9e38fa9fd883642c83c3720049159 ]

Fix a typo where V compare incorrectly compares av[] with av[] itself,
which can result in HDCP failure.

The loop of V compare is expected to iterate for 5 times
which compare V array form av[0][] to av[4][].
It should check loop counter reach the last statement "i == 5"
before return true

Fixes: 0989c02c7a5c ("drm/bridge: it6505: fix HDCP CTS compare V matching")
Signed-off-by: Hermes Wu <Hermes.wu@ite.com.tw>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250121-fix-hdcp-v-comp-v4-1-185f45c728dc@ite.com.tw
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/ite-it6505.c