]> www.infradead.org Git - users/dwmw2/linux.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)
commit4739824e2d7878dcea88397a6758e31e3c5c124e
tree2090803e1bc0c8dac3eba93a068bfdcceb95813a
parente0539ae012ba5d618eb19665ff990b87b960c643
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: fe60e8c53411 ("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