From nobody Sun Jul 12 20:32:11 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3950215ECDC; Wed, 27 Mar 2024 12:19:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711541945; cv=none; b=sKqxr1R9ZD4g/ByFWy+ui1LRQALRFya2Q9ojoAqC1OtsixWcq13eb4kzGB0+RQDy/3zLEF/zCo8qOIH8ttrKHeu6nzB/7GPgyufQ4loAzs4OCdSd3ZrvHsnsdBCs02fGjSwhqx+CaLgQGzmUbKB+L+Ckfudofjy9Qr65CJVNPE8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711541945; c=relaxed/simple; bh=xhHUhagou7j7yV4aF0lAFnXi96sDR97KFT8YkdNIod4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hhyITC2BVFOEjynxpwESSX/oNmDxoq7XopFKqhFz38quIhBGhJONxC0ZGfxL54xX4/nUdHrf2y5HxpSCDVGZFNmmVPV/LtFRJ2cRvdV05RrfwDvsC3VbRNrkGvNRSl09noojYaeTvUqqV3nAcJEDaRzAcuiWB85ZYqXE3XWKtSE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tae1olgp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tae1olgp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE626C433F1; Wed, 27 Mar 2024 12:19:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711541945; bh=xhHUhagou7j7yV4aF0lAFnXi96sDR97KFT8YkdNIod4=; h=From:To:Cc:Subject:Date:From; b=tae1olgpA+WkaRFNBJeK2xSMkbCtsX99wjutqlYX0sTvwlPuArct4JsvyjV47pzMU 0E0AcehNAnVGOWJjDRcbJE71pe1k9I/Boyx6nVTj1s1XNghc7MjG8UjZRQY0QCDFHC nh9Zvkmt28+FRkV4RfPYBKQPgNB64rKvSIVRlpPnz1NI3f8Av4aGb77ACAYZSiQuej BaokPhEL0UWkt7XcSwbNDaL31vpXyF9hneB9pUbJF3dJESw5YmxzMA1SuE83OogXkL XcrchfvALXbpx8/SfKf8k9b5MIYti+AJx3NDHEYDC0rijvn7cqwIGliaUD2cjV8pip lJdCKyPoQI96A== From: Sasha Levin To: stable@vger.kernel.org, srinivasan.shanmugam@amd.com Cc: Jerry Zuo , Jun Lei , Wayne Lin , Aurabindo Pillai , Rodrigo Siqueira , Hamza Mahfooz , Alex Deucher , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: FAILED: Patch "drm/amd/display: Fix uninitialized variable usage in core_link_ 'read_dpcd() & write_dpcd()' functions" failed to apply to 5.10-stable tree Date: Wed, 27 Mar 2024 08:19:02 -0400 Message-ID: <20240327121903.2834888-1-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The patch below does not apply to the 5.10-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha Reviewed-by: Rodrigo Siqueira ------------------ original commit in Linus's tree ------------------ From 3295580d4683bdc56c0662b4a4834f597baceadc Mon Sep 17 00:00:00 2001 From: Srinivasan Shanmugam Date: Wed, 17 Jan 2024 08:41:52 +0530 Subject: [PATCH] drm/amd/display: Fix uninitialized variable usage in core_link_ 'read_dpcd() & write_dpcd()' functions The 'status' variable in 'core_link_read_dpcd()' & 'core_link_write_dpcd()' was uninitialized. Thus, initializing 'status' variable to 'DC_ERROR_UNEXPECTED' by default. Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dpcd.c:226 cor= e_link_read_dpcd() error: uninitialized symbol 'status'. drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dpcd.c:248 cor= e_link_write_dpcd() error: uninitialized symbol 'status'. Cc: stable@vger.kernel.org Cc: Jerry Zuo Cc: Jun Lei Cc: Wayne Lin Cc: Aurabindo Pillai Cc: Rodrigo Siqueira Cc: Hamza Mahfooz Signed-off-by: Srinivasan Shanmugam Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/link/protocols/link_dpcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dpcd.c b/dr= ivers/gpu/drm/amd/display/dc/link/protocols/link_dpcd.c index 5c9a30211c109..fc50931c2aecb 100644 --- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dpcd.c +++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dpcd.c @@ -205,7 +205,7 @@ enum dc_status core_link_read_dpcd( uint32_t extended_size; /* size of the remaining partitioned address space */ uint32_t size_left_to_read; - enum dc_status status; + enum dc_status status =3D DC_ERROR_UNEXPECTED; /* size of the next partition to be read from */ uint32_t partition_size; uint32_t data_index =3D 0; @@ -234,7 +234,7 @@ enum dc_status core_link_write_dpcd( { uint32_t partition_size; uint32_t data_index =3D 0; - enum dc_status status; + enum dc_status status =3D DC_ERROR_UNEXPECTED; =20 while (size) { partition_size =3D dpcd_get_next_partition_size(address, size); --=20 2.43.0