From: Dan Carpenter <error27@gmail.com>
To: sancchen@amd.com
Cc: amd-gfx@lists.freedesktop.org
Subject: [bug report] drm/amd/display: Various logs added
Date: Mon, 27 Feb 2023 10:12:07 +0300 [thread overview]
Message-ID: <Y/xXx2KXpxI2WoF8@kili> (raw)
Hello Leo Chen,
This is a semi-automatic email about new static checker warnings.
The patch 7ef414375fcc: "drm/amd/display: Various logs added" from
Aug 29, 2022, leads to the following Smatch complaint:
./drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c:1862 get_firmware_info_v3_2()
warn: variable dereferenced before check 'smu_info_v3_2' (see line 1861)
./drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
1860 DATA_TABLES(smu_info));
1861 DC_LOG_BIOS("gpuclk_ss_percentage (unit of 0.001 percent): %d\n", smu_info_v3_2->gpuclk_ss_percentage);
^^^^^^^^^^^^^^^
Log adds a crash.
1862 if (!smu_info_v3_2)
^^^^^^^^^^^^^
Too late.
1863 return BP_RESULT_BADBIOSTABLE;
1864
regards,
dan carpenter
reply other threads:[~2023-02-27 9:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y/xXx2KXpxI2WoF8@kili \
--to=error27@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=sancchen@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.