aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2016-11-15 20:56:26 +0000
committerJens Axboe <[email protected]>2016-11-16 19:39:57 +0000
commitd48756228ee9161ac8836b346589a43fabdc9f3c (patch)
tree9f1c735aa5b75345e71baca7a3bcbe19c8edc568 /lib/debugobjects.c
parentMerge branch 'nvmf-4.9-rc' of git://git.infradead.org/nvme-fabrics into for-l... (diff)
downloadkernel-d48756228ee9161ac8836b346589a43fabdc9f3c.tar.gz
kernel-d48756228ee9161ac8836b346589a43fabdc9f3c.zip
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 <[email protected]> Tested-by: Scott Bauer <[email protected]> Signed-off-by: Keith Busch <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions