9P/RDMA: Do not free req->rc in error handling in rdma_request()
authorSimon Derr <simon.derr@bull.net>
Fri, 21 Jun 2013 13:32:40 +0000 (15:32 +0200)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 8 Jul 2013 03:02:29 +0000 (22:02 -0500)
commitb530e252e291c27fdcb1b73c72ad17f75c8bdba6
tree0f9c42053871a3b5036d6cc39b7c3847ac539288
parentfd453d0ed6c1dacef8eff466df473d62d63db1e9
9P/RDMA: Do not free req->rc in error handling in rdma_request()

rdma_request() should never be in charge of freeing rc.

When an error occurs:
* Either the rc buffer has been recv_post()'ed.
  then kfree()'ing it certainly is a bad idea.
* Or is has not, and in that case req->rc still points to it,
  hence it needs not be freed.

Signed-off-by: Simon Derr <simon.derr@bull.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
net/9p/trans_rdma.c