https://github.com/torvalds/linux
Revision d48756228ee9161ac8836b346589a43fabdc9f3c authored by Keith Busch on 15 November 2016, 20:56:26 UTC, committed by Jens Axboe on 16 November 2016, 19:39:57 UTC
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>
1 parent 959401a
History
Tip revision: d48756228ee9161ac8836b346589a43fabdc9f3c authored by Keith Busch on 15 November 2016, 20:56:26 UTC
nvme/pci: Don't free queues on error
Tip revision: d487562
File Mode Size
hci
nci
Kconfig -rw-r--r-- 805 bytes
Makefile -rw-r--r-- 339 bytes
af_nfc.c -rw-r--r-- 2.4 KB
core.c -rw-r--r-- 24.8 KB
digital.h -rw-r--r-- 5.6 KB
digital_core.c -rw-r--r-- 20.3 KB
digital_dep.c -rw-r--r-- 34.9 KB
digital_technology.c -rw-r--r-- 26.9 KB
llcp.h -rw-r--r-- 7.3 KB
llcp_commands.c -rw-r--r-- 16.4 KB
llcp_core.c -rw-r--r-- 34.5 KB
llcp_sock.c -rw-r--r-- 22.2 KB
netlink.c -rw-r--r-- 38.8 KB
nfc.h -rw-r--r-- 5.0 KB
rawsock.c -rw-r--r-- 9.6 KB

back to top