]> 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)
commit08d1e9a55c4ec9458074e319425a937d1fcb25b3
tree71ea0dddbefdf0d8330ab1848c1aa79b97ff6ca8
parente291078e0834789175f8134d86579e7526013cc4
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 57062cb503b4 ("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