Nikolay Aleksandrov 468e794458 bridge: vlan: fix possible null vlgrp deref while registering new port
While a new port is being initialized the rx_handler gets set, but the
vlans get initialized later in br_add_if() and in that window if we
receive a frame with a link-local address we can try to dereference
p->vlgrp in:
br_handle_frame() -> br_handle_local_finish() -> br_should_learn()

Fix this by checking vlgrp before using it.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-10-01 18:24:04 -07:00
..
2015-08-30 18:12:36 -04:00
2015-08-24 14:48:10 -07:00
2015-09-25 12:27:22 -07:00
2015-08-31 12:45:09 -07:00
2015-09-23 14:33:55 -07:00
2015-09-25 11:33:52 -07:00