public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* re: libnvdimm, nfit, nd_blk: driver for BLK-mode access persistent memory
@ 2015-06-30 17:42 Dan Carpenter
  2015-06-30 23:07 ` Williams, Dan J
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2015-06-30 17:42 UTC (permalink / raw)
  To: ross.zwisler; +Cc: linux-nvdimm, linux-acpi

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-30 23:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 17:42 libnvdimm, nfit, nd_blk: driver for BLK-mode access persistent memory Dan Carpenter
2015-06-30 23:07 ` Williams, Dan J

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox