]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SUNRPC: Destroy the back channel when we destroy the host transport
authorTrond Myklebust <trondmy@gmail.com>
Thu, 17 Oct 2019 13:02:21 +0000 (09:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Nov 2019 18:28:14 +0000 (19:28 +0100)
commit7fc9c5338bf43ba2cd80e4d704f6923bbad60a83
tree5018382610bca06860a06cb88827ab391475f8a9
parentcca654e699b1a94e39a6783309683721f7be2dea
SUNRPC: Destroy the back channel when we destroy the host transport

[ Upstream commit 669996add4c92476e0f8d6b4cd2bb308d1939fd7 ]

When we're destroying the host transport mechanism, we should ensure
that we do not leak memory by failing to release any back channel
slots that might still exist.

Reported-by: Neil Brown <neilb@suse.de>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/sunrpc/bc_xprt.h
net/sunrpc/backchannel_rqst.c
net/sunrpc/xprt.c