]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Double free in rpcrdma_sendctxs_create()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 5 Jan 2019 13:06:48 +0000 (16:06 +0300)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 8 Jan 2019 17:06:17 +0000 (12:06 -0500)
commit33ccefb7c1bdbac55f6369ef38c26acd8b54f6aa
tree3d65479d035e5503c732720cddaccdfada54fdc4
parent6faacf35a370cb0945e46408e9bded9ac0b993ae
xprtrdma: Double free in rpcrdma_sendctxs_create()

The clean up is handled by the caller, rpcrdma_buffer_create(), so this
call to rpcrdma_sendctxs_destroy() leads to a double free.

Fixes: 690d5aee87b7 ("xprtrdma: Add data structure to manage RDMA Send arguments")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c