diff options
author | Keith Busch <keith.busch@intel.com> | 2016-11-15 20:56:26 (GMT) |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-16 19:39:57 (GMT) |
commit | d48756228ee9161ac8836b346589a43fabdc9f3c (patch) | |
tree | 9f1c735aa5b75345e71baca7a3bcbe19c8edc568 /drivers/mfd/si476x-prop.c | |
parent | 959401aa2b8cc6422809762a6ba4b2635154e9a6 (diff) | |
download | linux-d48756228ee9161ac8836b346589a43fabdc9f3c.tar.xz |
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>
Diffstat (limited to 'drivers/mfd/si476x-prop.c')
0 files changed, 0 insertions, 0 deletions