net/9p: Return error if we fail to encode protocol data
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 19 Oct 2010 03:47:02 +0000 (09:17 +0530)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 28 Oct 2010 14:08:49 +0000 (09:08 -0500)
commit7b3bb3fe166702b504f1068359c9550d3b277eaf
tree8a3c8039f55126dbafb23a06d7b03a1e5abf3d24
parent877cb3d4dd73838adcc6b79f2a3d29b155e7ebbe
net/9p: Return error if we fail to encode protocol data

We need to return error in case we fail to encode data in protocol buffer.
This patch also return error in case of a failed copy_from_user.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
net/9p/client.c
net/9p/protocol.c