]> git.baikalelectronics.ru Git - kernel.git/commit
nvme/pci: Hold controller reference during async probe
authorKeith Busch <keith.busch@intel.com>
Mon, 7 May 2018 14:30:24 +0000 (08:30 -0600)
committerKeith Busch <keith.busch@intel.com>
Mon, 7 May 2018 14:30:24 +0000 (08:30 -0600)
commitce7389a64796c28dfb4b6582c22e8fce604a6586
treef1e68c4104d1e77433a3a596b431ea9efdd4effe
parent35af4dadad11ef7ee1c1e0c35bfd010cf19abe93
nvme/pci: Hold controller reference during async probe

It is possible the driver's remove may have freed the controller if
the remove callback is invoked prior to the async_schedule starting
the reset_work. This patch fixes that by holding a reference on the
controller.

Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/pci.c