diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-06-30 22:09:39 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-06-30 22:09:39 +0200 |
commit | 193ccca43850d2355e7690a93ab9d7d78d38f905 (patch) | |
tree | e70be5b260e1dc2d1d58154c4e17143851c33180 /MAINTAINERS | |
parent | nvdimm: Fix return value of nvdimm_bus_init() if class_create() fails (diff) | |
download | linux-193ccca43850d2355e7690a93ab9d7d78d38f905.tar.xz linux-193ccca43850d2355e7690a93ab9d7d78d38f905.zip |
nfit: fix smatch "use after null check" report
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.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions