]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/nvme/host/fc.c
Merge tag 'platform-drivers-x86-v4.12-2' of git://git.infradead.org/linux-platform...
[karo-tx-linux.git] / drivers / nvme / host / fc.c
index 2edae54688e88d88f2b54b7239b20a5ff9c14953..92964cef0f4be5795bed3e874407c74a3e3cc725 100644 (file)
@@ -2806,6 +2806,7 @@ nvme_fc_init_ctrl(struct device *dev, struct nvmf_ctrl_options *opts,
                ctrl->ctrl.opts = NULL;
                /* initiate nvme ctrl ref counting teardown */
                nvme_uninit_ctrl(&ctrl->ctrl);
+               nvme_put_ctrl(&ctrl->ctrl);
 
                /* as we're past the point where we transition to the ref
                 * counting teardown path, if we return a bad pointer here,