diff options
author | James Smart <jsmart2021@gmail.com> | 2017-11-30 02:11:37 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-12-15 17:13:33 +0300 |
commit | 4596e752db02d47038cd7c965419789ab15d1985 (patch) | |
tree | fcca11527ffc8f263f74ef655b2d758fe254a2cf /drivers/nvme/host/fc.c | |
parent | b224f6134d72e3493a023b5bea917f9a6beea0c8 (diff) | |
download | linux-4596e752db02d47038cd7c965419789ab15d1985.tar.xz |
nvme-fc: remove double put reference if admin connect fails
There are two put references in the failure case of initial
create_association. The first put actually frees the controller, thus the
second put references freed memory.
Remove the unnecessary 2nd put.
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/fc.c')
-rw-r--r-- | drivers/nvme/host/fc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index 0a8af4daef89..794e66e4aa20 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -3221,7 +3221,6 @@ nvme_fc_init_ctrl(struct device *dev, struct nvmf_ctrl_options *opts, /* initiate nvme ctrl ref counting teardown */ nvme_uninit_ctrl(&ctrl->ctrl); - nvme_put_ctrl(&ctrl->ctrl); /* Remove core ctrl ref. */ nvme_put_ctrl(&ctrl->ctrl); |