diff options
-rw-r--r-- | net/bridge/br_fdb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index ebfa4443c69b..60aca9109a50 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c | |||
@@ -707,6 +707,11 @@ int br_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], | |||
707 | } | 707 | } |
708 | } | 708 | } |
709 | 709 | ||
710 | if (is_zero_ether_addr(addr)) { | ||
711 | pr_info("bridge: RTM_NEWNEIGH with invalid ether address\n"); | ||
712 | return -EINVAL; | ||
713 | } | ||
714 | |||
710 | p = br_port_get_rtnl(dev); | 715 | p = br_port_get_rtnl(dev); |
711 | if (p == NULL) { | 716 | if (p == NULL) { |
712 | pr_info("bridge: RTM_NEWNEIGH %s not a bridge port\n", | 717 | pr_info("bridge: RTM_NEWNEIGH %s not a bridge port\n", |