Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315418
b: refs/heads/master
c: a858d64
h: refs/heads/master
v: v3
  • Loading branch information
Li Wei authored and David S. Miller committed Jul 17, 2012
1 parent bca73b9 commit 1cfbad5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c41e4130a248c8220889f6e6636b47595e369386
refs/heads/master: a858d64b7709ca7bd2ee71d66ef3b7190cdcbb7d
3 changes: 3 additions & 0 deletions trunk/net/ipv6/mcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ int ipv6_sock_mc_drop(struct sock *sk, int ifindex, const struct in6_addr *addr)
struct ipv6_mc_socklist __rcu **lnk;
struct net *net = sock_net(sk);

if (!ipv6_addr_is_multicast(addr))
return -EINVAL;

spin_lock(&ipv6_sk_mc_lock);
for (lnk = &np->ipv6_mc_list;
(mc_lst = rcu_dereference_protected(*lnk,
Expand Down

0 comments on commit 1cfbad5

Please sign in to comment.