svcrdma: Return error from rdma_read_xdr so caller knows to free context
authorTom Tucker <tom@opengridcomputing.com>
Tue, 6 May 2008 15:04:50 +0000 (10:04 -0500)
committerTom Tucker <tom@opengridcomputing.com>
Mon, 19 May 2008 12:33:49 +0000 (07:33 -0500)
commitd16d40093a95f2b31007d7a7abefc50e6b27e236
tree9237f839221763fccb50c6115e9caf9584311539
parent58e8f62137f1c55fe3d31234167660f2ce509297
svcrdma: Return error from rdma_read_xdr so caller knows to free context

The rdma_read_xdr function did not discriminate between no read-list and
an error posting the read-list. This results in a leak of a page if there
is an error posting the read-list.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c