bonding: fix bond_inet6addr_event()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 19 Jul 2010 03:24:14 +0000 (03:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jul 2010 16:34:31 +0000 (09:34 -0700)
commitdb5dda905759c931ceb8f3f2fcfd7719009acc98
treeb02a3f5e48ee9dfec6c04ea5fcacb69075ce2998
parentc26875e2e1a07137f6e7a621fa802b03c00535b6
bonding: fix bond_inet6addr_event()

After commit ad1afb0039391 (vlan_dev: VLAN 0 should be treated
as "no vlan tag" (802.1p packet)),
bond_inet6addr_event() might be called with a NULL bond->vlgrp pointer, and
a non empty bond->vlan_list. vlan_group_get_device() is dereferencing a NULL pointer.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_ipv6.c