linux-stable/drivers/acpi/nfit
Toshi Kani 23fbd7c70a acpi, nfit: fix register dimm error handling
A NULL pointer reference kernel bug was observed when
acpi_nfit_add_dimm() called in acpi_nfit_register_dimms() failed. This
error path does not set nfit_mem->nvdimm, but the 2nd
list_for_each_entry() loop in the function assumes it's always set. Add
a check to nfit_mem->nvdimm.

Cc: <stable@vger.kernel.org>
Fixes: ba9c8dd3c2 ("acpi, nfit: add dimm device notification support")
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2018-02-02 13:49:29 -08:00
..
core.c acpi, nfit: fix register dimm error handling 2018-02-02 13:49:29 -08:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile
mce.c libnvdimm: move poison list functions to a new 'badrange' file 2017-11-02 10:42:30 -07:00
nfit.h acpi, nfit: add 'Enable Latch System Shutdown Status' command support 2017-11-15 16:55:41 -08:00