diff options
author | David S. Miller <davem@davemloft.net> | 2015-02-04 23:46:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-04 23:46:55 -0500 |
commit | f2683b743f2334ef49a5361bf596dd1fbd2c9be4 (patch) | |
tree | 7f53b2614742238e966ba8a815ef6c5079422ee2 /net/netlink | |
parent | 9878196578286c5ed494778ada01da094377a686 (diff) | |
parent | 57dd8a0735aabff4862025cf64ad94da3d80e620 (diff) |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
More iov_iter work from Al Viro.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 155854802d44..6feb16d5e1b8 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -2298,7 +2298,12 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, | |||
2298 | goto out; | 2298 | goto out; |
2299 | } | 2299 | } |
2300 | 2300 | ||
2301 | /* It's a really convoluted way for userland to ask for mmaped | ||
2302 | * sendmsg(), but that's what we've got... | ||
2303 | */ | ||
2301 | if (netlink_tx_is_mmaped(sk) && | 2304 | if (netlink_tx_is_mmaped(sk) && |
2305 | msg->msg_iter.type == ITER_IOVEC && | ||
2306 | msg->msg_iter.nr_segs == 1 && | ||
2302 | msg->msg_iter.iov->iov_base == NULL) { | 2307 | msg->msg_iter.iov->iov_base == NULL) { |
2303 | err = netlink_mmap_sendmsg(sk, msg, dst_portid, dst_group, | 2308 | err = netlink_mmap_sendmsg(sk, msg, dst_portid, dst_group, |
2304 | &scm); | 2309 | &scm); |