]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fabrics: remove superfluous nvmf_host_put in nvmf_parse_options
authorHou Pu <houpu.main@gmail.com>
Fri, 9 Jul 2021 02:32:47 +0000 (10:32 +0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:23 +0000 (14:42 +0200)
commit366e67f439131e8f48e6a65b8aead532d0aa33f5
tree71ea0dddbefdf0d8330ab1848c1aa79b97ff6ca8
parenta9ddf6798384336677e1ba319b6d67844438c808
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 d90c22504016 ("nvme: fix
potential memory leak in option parsing").

Signed-off-by: Hou Pu <houpu.main@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c