From: Aneesh Kumar K.V Date: Mon, 20 May 2013 17:35:15 +0000 (+0530) Subject: net/9p: Handle error in zero copy request correctly for 9p2000.u X-Git-Tag: v3.10-rc6~29^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6390460af8a672754dd6743f326515e98f52b2a7;p=pandora-kernel.git net/9p: Handle error in zero copy request correctly for 9p2000.u For zero copy request, error will be encoded in the user space buffer. So copy the error code correctly using copy_from_user. Here we use the extra bytes we allocate for zero copy request. If total error details are more than P9_ZC_HDR_SZ - 7 bytes, we return -EFAULT. The patch also avoid a memory allocation in the error path. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed