public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: ross.zwisler@linux.intel.com
Cc: linux-nvdimm@ml01.01.org, linux-acpi@vger.kernel.org
Subject: re: libnvdimm, nfit, nd_blk: driver for BLK-mode access persistent memory
Date: Tue, 30 Jun 2015 20:42:22 +0300	[thread overview]
Message-ID: <20150630174222.GA30796@mwanda> (raw)

Hello Ross Zwisler,

This is a semi-automatic email about new static checker warnings.

The patch 047fc8a1f9a6: "libnvdimm, nfit, nd_blk: driver for BLK-mode 
access persistent memory" from Jun 25, 2015, leads to the following 
Smatch complaint:

drivers/acpi/nfit.c:1224 acpi_nfit_blk_region_enable()
	 error: we previously assumed 'nfit_mem' could be null (see line 1223)

drivers/acpi/nfit.c
  1222		nfit_mem = nvdimm_provider_data(nvdimm);
  1223		if (!nfit_mem || !nfit_mem->dcr || !nfit_mem->bdw) {
                     ^^^^^^^^
Check.

  1224			dev_dbg(dev, "%s: missing%s%s%s\n", __func__,
  1225					nfit_mem ? "" : " nfit_mem",
  1226					nfit_mem->dcr ? "" : " dcr",
                                        ^^^^^^^^^^^^^
Unchecked dereference.

regards,
dan carpenter

             reply	other threads:[~2015-06-30 17:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-30 17:42 Dan Carpenter [this message]
2015-06-30 23:07 ` libnvdimm, nfit, nd_blk: driver for BLK-mode access persistent memory Williams, Dan J

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=20150630174222.GA30796@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-nvdimm@ml01.01.org \
    --cc=ross.zwisler@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox