commit | c734047797dd60bc19c991f9af1c08bccc4114f8 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Wed Feb 05 19:44:22 2014 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Feb 05 19:44:22 2014 -0800 |
tree | 02939f7e06fae990765bc4009c66ac29f9b67cda | |
parent | 19b82356f5f90ed3becace6e1da6a5f5d164bee7 [diff] | |
parent | ed72649533fe581ceb3f37708f06914056a9789c [diff] |
Merge "net: ipv6: add missing lock in ping_v6_sendmsg"
diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c index ab578e5..dc9a4e4 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c
@@ -198,6 +198,7 @@ if (hlimit < 0) hlimit = ip6_dst_hoplimit(dst); + lock_sock(sk); err = ip6_append_data(sk, ping_getfrag, &pfh, len, 0, hlimit, np->tclass, NULL, &fl6, rt, @@ -212,6 +213,7 @@ (struct icmp6hdr *) &pfh.icmph, len); } + release_sock(sk); return err; }