]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix a memory leak in rpc_create()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 7 Apr 2008 20:52:44 +0000 (16:52 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 Apr 2008 01:07:00 +0000 (21:07 -0400)
commit759fc20b74b4f86d97a64bffbf15af646ab28deb
tree164af7ac3dfd69c6c939150b530fd57a9eb8e54d
parent34633f750c2dd062472a57f0471054bba0f9b4aa
SUNRPC: Fix a memory leak in rpc_create()

Commit ecffdc1f was supposed to move the xprt_create_transport() call in
rpc_create(), but neglected to remove the old call site.  This resulted in
a transport leak after every rpc_create() call.

This leak is present in 2.6.24 and 2.6.25.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c