]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit3a508faf8bbb12f1d2e0899b71627fcad7ed2115
treef146aee2417f755e33bfbc76c02e7d6af50c0449
parentb4382e3068b84d1c754f5199d9d6d4b83294edb1
xprtrdma: Double free in rpcrdma_sendctxs_create()

BugLink: https://bugs.launchpad.net/bugs/1837813
[ Upstream commit 6e17f58c486d9554341f70aa5b63b8fbed07b3fa ]

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

Fixes: ae72950abf99 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/sunrpc/xprtrdma/verbs.c