* Coverity: gfx_v9_0_init_cp_compute_microcode(): Control flow issues
@ 2023-01-12 22:24 coverity-bot
0 siblings, 0 replies; only message in thread
From: coverity-bot @ 2023-01-12 22:24 UTC (permalink / raw)
To: Mario Limonciello
Cc: Lijo Lazar, linux-kernel, amd-gfx, Jiadong.Zhu, Hawking Zhang,
Alex Deucher, Daniel Vetter, David Airlie, Likun Gao, dri-devel,
Tao Zhou, Christian König, Pan, Xinhui, yipechai,
Gustavo A. R. Silva, linux-next, linux-hardening
Hello!
This is an experimental semi-automated report about issues detected by
Coverity from a scan of next-20230111 as part of the linux-next scan project:
https://scan.coverity.com/projects/linux-next-weekly-scan
You're getting this email because you were associated with the identified
lines of code (noted below) that were touched by commits:
Mon Jan 9 17:02:18 2023 -0500
ec787deb2ddf ("drm/amd: Use `amdgpu_ucode_*` helpers for GFX9")
Coverity reported the following:
*** CID 1530548: Control flow issues (DEADCODE)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:1374 in gfx_v9_0_init_cp_compute_microcode()
1368 adev->gfx.mec2_feature_version = adev->gfx.mec_feature_version;
1369 }
1370
1371 gfx_v9_0_check_if_need_gfxoff(adev);
1372 gfx_v9_0_check_fw_write_wait(adev);
1373 if (err) {
vvv CID 1530548: Control flow issues (DEADCODE)
vvv Execution cannot reach this statement: "amdgpu_ucode_release(&adev-...".
1374 amdgpu_ucode_release(&adev->gfx.mec_fw);
1375 amdgpu_ucode_release(&adev->gfx.mec2_fw);
1376 }
1377 return err;
1378 }
1379
If this is a false positive, please let us know so we can mark it as
such, or teach the Coverity rules to be smarter. If not, please make
sure fixes get into linux-next. :) For patches fixing this, please
include these lines (but double-check the "Fixes" first):
Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1530548 ("Control flow issues")
Fixes: ec787deb2ddf ("drm/amd: Use `amdgpu_ucode_*` helpers for GFX9")
Thanks for your attention!
--
Coverity-bot
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-12 22:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-12 22:24 Coverity: gfx_v9_0_init_cp_compute_microcode(): Control flow issues coverity-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox