]> git.karo-electronics.de Git - linux-beck.git/commit
nvme: only add a controller to dev_list after it's been fully initialized
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Oct 2015 12:03:33 +0000 (14:03 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 22 Dec 2015 16:38:23 +0000 (09:38 -0700)
commit7385014c073263b077442439299fad013edd4409
tree862c56f67438962389649e8b706f4026f0c7eb0e
parent749941f2365db8198b5d75c83a575ee6e55bf03b
nvme: only add a controller to dev_list after it's been fully initialized

Without this we can easily get bad derferences on nvmeq->d_db when the nvme
kthread tries to poll the CQs for controllers that are in half initialized
state.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c