diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-27 20:34:16 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-02-04 01:34:14 -0500 |
| commit | cacdc7d2f9fa42e29b650e2879df42ea7d7833c1 (patch) | |
| tree | 45f0ff4663f193b759b74a58a4a902d7667abada /net/ipv6 | |
| parent | 2e90b1c45e34240eeeacab0b37d5f8f739462bdc (diff) | |
ip: stash a pointer to msghdr in struct ping_fakehdr
... instead of storing its ->mgs_iter.iov there
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/ipv6')
| -rw-r--r-- | net/ipv6/ping.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c index 2d3148378a1f..bd46f736f61d 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c | |||
| @@ -163,8 +163,7 @@ int ping_v6_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
| 163 | pfh.icmph.checksum = 0; | 163 | pfh.icmph.checksum = 0; |
| 164 | pfh.icmph.un.echo.id = inet->inet_sport; | 164 | pfh.icmph.un.echo.id = inet->inet_sport; |
| 165 | pfh.icmph.un.echo.sequence = user_icmph.icmp6_sequence; | 165 | pfh.icmph.un.echo.sequence = user_icmph.icmp6_sequence; |
| 166 | /* XXX: stripping const */ | 166 | pfh.msg = msg; |
| 167 | pfh.iov = (struct iovec *)msg->msg_iter.iov; | ||
| 168 | pfh.wcheck = 0; | 167 | pfh.wcheck = 0; |
| 169 | pfh.family = AF_INET6; | 168 | pfh.family = AF_INET6; |
| 170 | 169 | ||
