bridge br_multicast: BUG: unable to handle kernel NULL pointer dereference
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 Jul 2010 14:50:08 +0000 (14:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jul 2010 03:08:06 +0000 (20:08 -0700)
commit7f285fa78d4b81b8458f05e77fb6b46245121b4e
treea4fa0d8e5cd102bb3aed7ad984de31e8a5f7575e
parentbcfcc450baaaa44afc1d3c51ef96a53338ff0eb2
bridge br_multicast: BUG: unable to handle kernel NULL pointer dereference

On Tue, Jul 06, 2010 at 08:48:35AM +0800, Herbert Xu wrote:
>
> bridge: Restore NULL check in br_mdb_ip_get

Resend with proper attribution.

bridge: Restore NULL check in br_mdb_ip_get

Somewhere along the line the NULL check in br_mdb_ip_get went
AWOL, causing crashes when we receive an IGMP packet with no
multicast table allocated.

This patch restores it and ensures all br_mdb_*_get functions
use it.

Reported-by: Frank Arnold <frank.arnold@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Thanks,
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c