Message ID | 20250109-fix-hdcp-v-comp-v2-1-7dce0a59523f@ite.com.tw (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v2] drm/bridge: it6505: fix HDCP V match check is not performed correctly | expand |
diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c index 88ef76a37fe6accacdd343839ff2569b31b18ceb..a7c33270a2b75d7c8ab85f6165b367a7c1a364a3 100644 --- a/drivers/gpu/drm/bridge/ite-it6505.c +++ b/drivers/gpu/drm/bridge/ite-it6505.c @@ -2250,12 +2250,13 @@ static bool it6505_hdcp_part2_ksvlist_check(struct it6505 *it6505) continue; } - for (i = 0; i < 5; i++) { + for (i = 0; i < 5; i++) if (bv[i][3] != av[i][0] || bv[i][2] != av[i][1] || av[i][1] != av[i][2] || bv[i][0] != av[i][3]) break; - DRM_DEV_DEBUG_DRIVER(dev, "V' all match!! %d, %d", retry, i); + if (i == 4) { + DRM_DEV_DEBUG_DRIVER(dev, "V' all match!! %d", retry); return true; } }