From: Trond Myklebust Date: Fri, 5 Apr 2013 18:13:21 +0000 (-0400) Subject: SUNRPC: Fix a potential memory leak in rpc_new_client X-Git-Tag: v3.9-rc7~29^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f05c124a70a4953a66acbd6d6c601ea1eb5d0fa7;p=pandora-kernel.git SUNRPC: Fix a potential memory leak in rpc_new_client If the call to rpciod_up() fails, we currently leak a reference to the struct rpc_xprt. As part of the fix, we also remove the redundant check for xprt!=NULL. This is already taken care of by the callers. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed