[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZscaSHwgW5fzy/Z+@duo.ucw.cz>
Date: Thu, 22 Aug 2024 13:00:24 +0200
From: Pavel Machek <pavel@....cz>
To: Sasha Levin <sashal@...nel.org>
Cc: linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Tim Huang <Tim.Huang@....com>,
Christian König <christian.koenig@....com>,
Alex Deucher <alexander.deucher@....com>, Xinhui.Pan@....com,
airlied@...il.com, daniel@...ll.ch, lijo.lazar@....com,
Zhigang.Luo@....com, Hawking.Zhang@....com, Yunxiang.Li@....com,
victor.skvortsov@....com, victorchengchi.lu@....com,
Vignesh.Chander@....com, surbhi.kakarya@....com,
danijel.slivka@....com, amd-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org
Subject: Re: [PATCH AUTOSEL 5.10 04/38] drm/amdgpu: fix uninitialized scalar
variable warning
Hi!
> From: Tim Huang <Tim.Huang@....com>
>
> [ Upstream commit 9a5f15d2a29d06ce5bd50919da7221cda92afb69 ]
>
> Clear warning that uses uninitialized value fw_size.
This is queued for 5.15 and 6.10, but not 6.1, for example. Mistake?
Best regards,
Pavel
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
> @@ -404,6 +404,8 @@ static void amdgpu_virt_add_bad_page(struct amdgpu_device *adev,
> uint64_t retired_page;
> uint32_t bp_idx, bp_cnt;
>
> + memset(&bp, 0, sizeof(bp));
> +
> if (bp_block_size) {
> bp_cnt = bp_block_size / sizeof(uint64_t);
> for (bp_idx = 0; bp_idx < bp_cnt; bp_idx++) {
--
People of Russia, stop Putin before his war on Ukraine escalates.
Download attachment "signature.asc" of type "application/pgp-signature" (196 bytes)
Powered by blists - more mailing lists