]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 21 Jun 2019 18:43:35 +0000 (14:43 -0400)
commitb96226148491505318228ac52624956bd98f9e0c
tree4f798ec59c449c5764a1cbc28c15f1faf9077eca
parent909105199a682cb09c500acd443d34b182846c9c
net :sunrpc :clnt :Fix xps refcount imbalance on the error path

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>
net/sunrpc/clnt.c