]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: Fix queue double allocations
authorKeith Busch <keith.busch@intel.com>
Tue, 23 Jan 2018 16:16:19 +0000 (09:16 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Jan 2018 19:15:34 +0000 (20:15 +0100)
commit22e9adaf75e66f3a630b3bdbafce167685936c7c
tree6996c5dba29363a50f5c1295c78a1f3052a6f8b8
parent69a86fdbcec5ba0b1d6fa4e621cc0c49c96310f0
nvme-pci: Fix queue double allocations

The queue count says the highest queue that's been allocated, so don't
reallocate a queue lower than that.

Fixes: d3af0c25952 ("nvme-pci: allocate device queues storage space at probe")
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c