[PATCH] nvme/pci: Don't free queues on error

Jens Axboe axboe at fb.com
Wed Nov 16 11:40:18 PST 2016


On 11/15/2016 01:56 PM, Keith Busch wrote:
> 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.

Added for 4.9, thanks Keith.

-- 
Jens Axboe




More information about the Linux-nvme mailing list