android_kernel_xiaomi_sm8350/net/9p
Aneesh Kumar K.V 6390460af8 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>
2013-05-28 11:47:57 -05:00
..
client.c net/9p: Handle error in zero copy request correctly for 9p2000.u 2013-05-28 11:47:57 -05:00
error.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
Kconfig net/9p: remove depends on CONFIG_EXPERIMENTAL 2013-01-11 11:39:33 -08:00
Makefile
mod.c
protocol.c 9p: Modify the stat structures to use kuid_t and kgid_t 2013-02-12 03:19:31 -08:00
protocol.h
trans_common.c
trans_common.h
trans_fd.c The following changes since commit 4cbe5a555f: 2012-10-12 09:59:23 +09:00
trans_rdma.c
trans_virtio.c Revert parts of "hlist: drop the node parameter from iterators" 2013-03-08 15:05:34 -08:00
util.c net/9p: convert to idr_alloc() 2013-02-27 19:10:20 -08:00