]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix missing release socket in rpc_sockname()
authorWang ShaoBo <bobo.shaobowang@huawei.com>
Thu, 24 Nov 2022 09:23:42 +0000 (17:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:23 +0000 (13:32 +0100)
commit7ea4584340675b6439e48bb6f34f45beac60c5c9
tree727ff3650f654c7a89d7fa84c72c9449024f4437
parent0b0005ae47bca24697ebe0c25b5a4a03998a27f5
SUNRPC: Fix missing release socket in rpc_sockname()

[ Upstream commit 51f024819eb680527d890206f8a428393b9fcc61 ]

socket dynamically created is not released when getting an unintended
address family type in rpc_sockname(), direct to out_release for calling
sock_release().

Fixes: 99f53b6e051b ("SUNRPC: Add API to acquire source address")
Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/clnt.c