]> www.infradead.org Git - users/dwmw2/linux.git/commit
net :sunrpc :clnt :Fix xps refcount imbalance on the error path
authorLin Yi <teroincn@163.com>
Mon, 10 Jun 2019 02:16:56 +0000 (10:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Jul 2019 07:04:29 +0000 (09:04 +0200)
commit5636cbbe30c5895bc62a3fb030e9992e651141be
tree127ac3db05b811c27d32edbd47058cc2b8564666
parent3dc99f53b053cf3993409144845c0b234e0d86d1
net :sunrpc :clnt :Fix xps refcount imbalance on the error path

[ Upstream commit b96226148491505318228ac52624956bd98f9e0c ]

rpc_clnt_add_xprt take a reference to struct rpc_xprt_switch, but forget
to release it before return, may lead to a memory leak.

Signed-off-by: Lin Yi <teroincn@163.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/clnt.c