Skip to content
Commit 9e866774 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

NVMe: Free admin queue memory on initialisation failure



If the adapter fails initialisation, the memory allocated for the
admin queue may not be freed.  Split the memory freeing part of
nvme_free_queue() into nvme_free_queue_mem() and call it in the case of
initialisation failure.

Signed-off-by: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
Reported-by: default avatarVishal Verma <vishal.l.verma@intel.com>
parent cd58ad7d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment