Skip to content
Snippets Groups Projects
Commit 155d6fb6 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

drm/bridge: cdns-mhdp8546: Fix use of uninitialized variable


'ret' could be uninitialized at the end of the function, although it's
not clear if that can happen in practice.

Fixes: 6a3608ea ("drm: bridge: cdns-mhdp8546: Enable HDCP")
Acked-by: default avatarMaxime Ripard <mripard@kernel.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231103-uninit-fixes-v2-3-c22b2444f5f5@ideasonboard.com
parent f9af8f0c
No related branches found
No related tags found
No related merge requests found
......@@ -403,7 +403,8 @@ static int _cdns_mhdp_hdcp_disable(struct cdns_mhdp_device *mhdp)
static int _cdns_mhdp_hdcp_enable(struct cdns_mhdp_device *mhdp, u8 content_type)
{
int ret, tries = 3;
int ret = -EINVAL;
int tries = 3;
u32 i;
for (i = 0; i < tries; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment