linux/tools/testing/nvdimm
Dan Williams 8b06b884cd tools/testing/nvdimm: fix nfit_test shutdown crash
Keep the nfit_test instances alive until after nfit_test_teardown(), as
we may be doing resource lookups until the final un-registrations have
completed. This fixes crashes of the form.

 BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
 IP: __release_resource+0x12/0x90
 Call Trace:
  remove_resource+0x23/0x40
  __wrap_remove_resource+0x29/0x30 [nfit_test_iomap]
  acpi_nfit_remove_resource+0xe/0x10 [nfit]
  devm_action_release+0xf/0x20
  release_nodes+0x16d/0x2b0
  devres_release_all+0x3c/0x60
  device_release+0x21/0x90
  kobject_release+0x6a/0x170
  kobject_put+0x2f/0x60
  put_device+0x17/0x20
  platform_device_unregister+0x20/0x30
  nfit_test_exit+0x36/0x960 [nfit_test]

Reported-by: Linda Knippers <linda.knippers@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2017-04-18 10:26:09 -07:00
..
test tools/testing/nvdimm: fix nfit_test shutdown crash 2017-04-18 10:26:09 -07:00
config_check.c treewide: remove redundant #include <linux/kconfig.h> 2016-10-11 15:06:33 -07:00
dax-dev.c device-dax, tools/testing/nvdimm: enable device-dax with mock resources 2017-04-12 21:56:43 -07:00
Kbuild device-dax, tools/testing/nvdimm: enable device-dax with mock resources 2017-04-12 21:56:43 -07:00
Makefile tools/testing/nvdimm: libnvdimm unit test infrastructure 2015-06-26 11:23:38 -04:00
pmem-dax.c pmem: kill __pmem address space 2016-07-12 19:25:38 -07:00