]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:43 +0000 (13:40 -0700)
commit513eaad0e6ed0bbbef5f3fc38db8df1b17869e1c
tree0dc8a5158a82cfeaedd82af26d7ad36ea24ac935
parentbe713af77f0cc7939e7c0cf30a3876e7f4d784b6
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>
(cherry picked from commit 7385014c073263b077442439299fad013edd4409)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c