From: Dan Carpenter <dan.carpenter@oracle.com>
To: mukul.joshi@amd.com
Cc: amd-gfx@lists.freedesktop.org
Subject: [bug report] drm/amdkfd: Track SDMA utilization per process
Date: Fri, 29 May 2020 11:47:30 +0300 [thread overview]
Message-ID: <20200529084730.GA1299127@mwanda> (raw)
Hello Mukul Joshi,
This is a semi-automatic email about new static checker warnings.
The patch 522b89c63370: "drm/amdkfd: Track SDMA utilization per
process" from May 26, 2020, leads to the following Smatch complaint:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:109 kfd_sdma_activity_worker()
warn: variable dereferenced before check 'pdd' (see line 106)
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:109 kfd_sdma_activity_worker()
warn: address of 'pdd->qpd' is non-NULL
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c
105 pdd = workarea->pdd;
106 dqm = pdd->dev->dqm;
^^^^^^^^
Dereference.
107 qpd = &pdd->qpd;
108
109 if (!pdd || !dqm || !qpd)
^^^ ^^^
pdd is checked too late and qpd can't possibly be NULL.
110 return;
111
regards,
dan carpenter
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
reply other threads:[~2020-05-29 8:47 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=20200529084730.GA1299127@mwanda \
--to=dan.carpenter@oracle.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=mukul.joshi@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.