xprtrdma: Fix double-free in rpcrdma_ep_create()
authorChuck Lever <chuck.lever@oracle.com>
Sat, 27 Jun 2020 16:35:04 +0000 (12:35 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 13 Jul 2020 14:50:41 +0000 (10:50 -0400)
commit85bfd71bc34e20d9fadb745131f6314c36d0f75b
tree0c82e964ed424300210d65e8f7e98693533c0946
parent11ba468877bb23f28956a35e896356252d63c983
xprtrdma: Fix double-free in rpcrdma_ep_create()

In the error paths, there's no need to call kfree(ep) after calling
rpcrdma_ep_put(ep).

Fixes: e28ce90083f0 ("xprtrdma: kmalloc rpcrdma_ep separate from rpcrdma_xprt")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c