]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
svcrdma: Fix page leak in svc_rdma_recv_read_chunk()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 11 Jun 2020 16:44:56 +0000 (12:44 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 13 Jul 2020 21:28:24 +0000 (17:28 -0400)
commite814eecbe3bbeaa8b004d25a4b8974d232b765a9
tree77932ac96e7d597cf401d3f901c0d3650ba5e93d
parent10b9d99a3dbbf5e9af838d1887a1047875dcafd9
svcrdma: Fix page leak in svc_rdma_recv_read_chunk()

Commit 07d0ff3b0cd2 ("svcrdma: Clean up Read chunk path") moved the
page saver logic so that it gets executed event when an error occurs.
In that case, the I/O is never posted, and those pages are then
leaked. Errors in this path, however, are quite rare.

Fixes: 07d0ff3b0cd2 ("svcrdma: Clean up Read chunk path")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_rw.c