bridge: check return value of ipv6_dev_get_saddr()
authorUlrich Weber <ulrich.weber@sophos.com>
Mon, 5 Mar 2012 04:52:44 +0000 (04:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2012 21:45:34 +0000 (16:45 -0500)
commitd1d81d4c3dd886d5fa25a2c4fa1e39cb89613712
tree8b9ee1f86fa66efeaa58f033a0e0c330c5c43139
parenta4b64fbe482c7766f7925f03067fc637716bfa3f
bridge: check return value of ipv6_dev_get_saddr()

otherwise source IPv6 address of ICMPV6_MGM_QUERY packet
might be random junk if IPv6 is disabled on interface or
link-local address is not yet ready (DAD).

Signed-off-by: Ulrich Weber <ulrich.weber@sophos.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c