]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedd7ea99a083464bc5d844a97576b47f2bf895f7
tree8a3c8039f55126dbafb23a06d7b03a1e5abf3d24
parentb747848664a9ae82e361968b99b3eee0662ca548
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