diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2013-05-20 17:35:15 (GMT) |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2013-05-28 14:28:42 (GMT) |
commit | 42fe6484c639e8f79e09f81cb89f4f69db224997 (patch) | |
tree | 0522c11fd4f43ca3d52e74fcfa164a91ff165d5f /include/trace | |
parent | 535bcd3c4e8d09a62a89b2f1f3b3a80e1b3fce4b (diff) | |
download | linux-fsl-qoriq-42fe6484c639e8f79e09f81cb89f4f69db224997.tar.xz |
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 <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions