Commit e23439e9 authored by Hou Pu's avatar Hou Pu Committed by Christoph Hellwig
Browse files

nvme-fabrics: remove superfluous nvmf_host_put in nvmf_parse_options



Opts->host is NULL there. It is checked just before. So remove
nvmf_host_put. It is introduced by commit 59a2f3f0 ("nvme: fix
potential memory leak in option parsing").

Signed-off-by: default avatarHou Pu <houpu.main@gmail.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 1751e97a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -719,7 +719,6 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts,
				ret = -EINVAL;
				goto out;
			}
			nvmf_host_put(opts->host);
			opts->host = nvmf_host_add(p);
			kfree(p);
			if (!opts->host) {