]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fix error pointer dereference in error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 15 Oct 2022 08:25:56 +0000 (11:25 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 19 Oct 2022 08:36:39 +0000 (10:36 +0200)
commit9b7782e5a97f23a19d8f7d350c633cb9f8bb1d97
tree2090803e1bc0c8dac3eba93a068bfdcceb95813a
parent2e8d501f340aa1b4dcd63454a7ed6d5ff293cf8a
nvme: fix error pointer dereference in error handling

There is typo here so it releases the wrong variable.  "ctrl->admin_q"
was intended instead of "ctrl->fabrics_q".

Fixes: 174feca0ec20 ("nvme: add common helpers to allocate and free tagsets")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c