aboutsummaryrefslogtreecommitdiffstats
path: root/net/compat.c
diff options
context:
space:
mode:
authortadeusz.struk@intel.com <tadeusz.struk@intel.com>2015-03-19 12:31:25 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-23 16:41:36 -0400
commit0345f93138b2224e0d7ce91fcffdb3dd23f364d7 (patch)
tree7cd37a309382dfc7dd6b028c2b1a88a181692a1c /net/compat.c
parentnetlink: Remove netlink_compare_arg.trailer (diff)
downloadlinux-dev-0345f93138b2224e0d7ce91fcffdb3dd23f364d7.tar.xz
linux-dev-0345f93138b2224e0d7ce91fcffdb3dd23f364d7.zip
net: socket: add support for async operations
Add support for async operations. Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/compat.c b/net/compat.c
index 13c0c9a25cd9..c4b6b0f43d5d 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -79,6 +79,8 @@ ssize_t get_compat_msghdr(struct msghdr *kmsg,
if (nr_segs > UIO_MAXIOV)
return -EMSGSIZE;
+ kmsg->msg_iocb = NULL;
+
err = compat_rw_copy_check_uvector(save_addr ? READ : WRITE,
compat_ptr(uiov), nr_segs,
UIO_FASTIOV, *iov, iov);