]> bbs.cooldavid.org Git - net-next-2.6.git/commit
net/9p: fix memory handling/allocation in rdma_request()
authorDavidlohr Bueso <dave@gnu.org>
Mon, 13 Sep 2010 15:53:18 +0000 (15:53 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 27 Sep 2010 12:52:50 +0000 (07:52 -0500)
commit1d6400c7c9cfd38976b25d55b357200ad3ff1be9
treee7da3e64ec02493282e76a55f2f0025e358049b3
parent32163f4b2cef28a5aab8b226ffecfc6379a53786
net/9p: fix memory handling/allocation in rdma_request()

Return -ENOMEM when erroring on kmalloc and fix memory leaks when returning on error.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
net/9p/trans_rdma.c