]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix unappropriate errno returned for non-multicast address
authorLi Wei <lw@cn.fujitsu.com>
Tue, 17 Jul 2012 07:28:59 +0000 (15:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 08:35:03 +0000 (01:35 -0700)
commit914d6f6c578e2ad5e67fc4853468a789f3d59871
tree363940e9b8d8ffa40624cd9974cc872cab355fd2
parentda6f0bb9855a0b8789e4a6cfb608b8ba0b130d67
ipv6: fix unappropriate errno returned for non-multicast address

We need to check the passed in multicast address and return
appropriate errno(EINVAL) if it is not valid. And it's no need
to walk through the ipv6_mc_list in this situation.

Signed-off-by: Li Wei <lw@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mcast.c