linux/drivers/nvme/host
Keith Busch d48756228e nvme/pci: Don't free queues on error
The nvme_remove function tears down all allocated resources in the correct
order, so no need to free queues on error during initialization. This
fixes possible use-after-free errors when queues are still associated
with a blk-mq hctx.

Reported-by: Scott Bauer <scott.bauer@intel.com>
Tested-by: Scott Bauer <scott.bauer@intel.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimbeg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-11-16 12:39:57 -07:00
..
core.c nvme: use symbolic constants for CNS values 2016-10-19 11:36:22 -06:00
fabrics.c
fabrics.h
Kconfig
lightnvm.c lightnvm: invalid offset calculation for lba_shift 2016-11-11 18:27:32 -07:00
Makefile
nvme.h
pci.c nvme/pci: Don't free queues on error 2016-11-16 12:39:57 -07:00
rdma.c nvme-rdma: stop and free io queues on connect failure 2016-11-14 02:08:53 +02:00
scsi.c nvme: Add tertiary number to NVME_VS 2016-10-19 11:36:22 -06:00