]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Fix error clean-up on nvme_alloc_queue
authorKeith Busch <keith.busch@intel.com>
Wed, 1 May 2013 19:07:47 +0000 (13:07 -0600)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Thu, 2 May 2013 18:34:35 +0000 (14:34 -0400)
commitede021919a53523152814e56ff357a6e80ef5a65
tree1ab6b77745c27962368da4daac8e8fd1820ce722
parente221e2e9ae737edbe5ff86fd1ca43f4432d3b6f9
NVMe: Fix error clean-up on nvme_alloc_queue

The nvme_queue's depth is not set if we fail to allocate submission queue
entries, which was being used to determine how much coherent memory to
free on error. Use the depth variable instead.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c