aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-11-30 19:42:52 -0800
committerDan Williams <dan.j.williams@intel.com>2017-12-04 10:14:47 -0800
commitadf6895754e2503d994a765535fd1813f8834674 (patch)
treebbb9b476f167732ad946d03b5757b52eadedbfee /drivers/nvdimm
parentLinux 4.15-rc2 (diff)
downloadlinux-dev-adf6895754e2503d994a765535fd1813f8834674.tar.xz
linux-dev-adf6895754e2503d994a765535fd1813f8834674.zip
acpi, nfit: fix health event notification
Integration testing with a BIOS that generates injected health event notifications fails to communicate those events to userspace. The nfit driver neglects to link the ACPI DIMM device with the necessary driver data so acpi_nvdimm_notify() fails this lookup: nfit_mem = dev_get_drvdata(dev); if (nfit_mem && nfit_mem->flags_attr) sysfs_notify_dirent(nfit_mem->flags_attr); Add the necessary linkage when installing the notification handler and clean it up when the nfit driver instance is torn down. Cc: <stable@vger.kernel.org> Cc: Toshi Kani <toshi.kani@hpe.com> Cc: Vishal Verma <vishal.l.verma@intel.com> Fixes: ba9c8dd3c222 ("acpi, nfit: add dimm device notification support") Reported-by: Daniel Osawa <daniel.k.osawa@intel.com> Tested-by: Daniel Osawa <daniel.k.osawa@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm')
0 files changed, 0 insertions, 0 deletions