]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Move NULL mdb check into br_mdb_ip_get
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Mar 2010 03:38:25 +0000 (20:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2010 03:38:25 +0000 (20:38 -0700)
commitee311c475f21ba360aa8402f98112034f082193b
treef5698d42aa24da271ec6a9a5eef8d6b89e5b4e2c
parent779c28bbad696407abd11a38d8476f7bb83c66c9
bridge: Move NULL mdb check into br_mdb_ip_get

Since all callers of br_mdb_ip_get need to check whether the
hash table is NULL, this patch moves the check into the function.

This fixes the two callers (query/leave handler) that didn't
check it.

Reported-by: Michael Braun <michael-dev@fami-braun.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c