linux/drivers/nvdimm
Alexander Duyck 8954771abd libnvdimm: Hold reference on parent while scheduling async init
commit b6eae0f61d upstream.

Unlike asynchronous initialization in the core we have not yet associated
the device with the parent, and as such the device doesn't hold a reference
to the parent.

In order to resolve that we should be holding a reference on the parent
until the asynchronous initialization has completed.

Cc: <stable@vger.kernel.org>
Fixes: 4d88a97aa9 ("libnvdimm: ...base ... infrastructure")
Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-21 09:27:34 +01:00
..
blk.c block: change ->make_request_fn() and users to return a queue cookie 2015-11-07 10:40:46 -07:00
btt_devs.c libnvdimm: btt_devs: Fix locking in namespace_store 2015-09-17 11:37:16 -04:00
btt.c libnvdimm, btt: fix btt_rw_page not returning errors 2017-08-06 19:19:42 -07:00
btt.h
bus.c libnvdimm: Hold reference on parent while scheduling async init 2018-11-21 09:27:34 +01:00
claim.c
core.c block, libnvdimm, nvme: provide a built-in blk_integrity nop profile 2015-10-21 14:43:45 -06:00
dimm_devs.c
dimm.c
e820.c libnvdimm, e820: fix numa node for e820-type-12 pmem ranges 2015-11-12 09:21:18 -08:00
Kconfig
label.c libnvdimm, namespace: fix label initialization to use valid seq numbers 2017-11-30 08:37:23 +00:00
label.h
Makefile
namespace_devs.c libnvdimm, namespace: make 'resource' attribute only readable by root 2017-11-30 08:37:23 +00:00
nd-core.h
nd.h nfit, libnvdimm: fix interleave set cookie calculation 2017-03-18 19:09:58 +08:00
pfn_devs.c libnvdimm, pfn: fix uuid validation 2016-04-20 15:41:54 +09:00
pfn.h
pmem.c libnvdimm, pmem: fix size trim in pmem_direct_access() 2015-11-12 09:55:23 -08:00
region_devs.c nfit, libnvdimm: fix interleave set cookie calculation 2017-03-18 19:09:58 +08:00
region.c