net/9p: Return error on read with NULL buffer
authorSanchit Garg <sancgarg@linux.vnet.ibm.com>
Wed, 27 Oct 2010 04:11:01 +0000 (09:41 +0530)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 28 Oct 2010 14:08:49 +0000 (09:08 -0500)
commitf6ac55b6c156cebf750376dc08e06ffdade82717
treefd173ac547ec84f90b56cf6d8a90f737b4b2748f
parentb165d60145b717261a0234f989c442c2b68b6ec0
net/9p: Return error on read with NULL buffer

This patch ensures that a read(fd, NULL, 10) returns  EFAULT on a 9p file.

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