|
@@ -707,6 +707,11 @@ int br_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (is_zero_ether_addr(addr)) {
|
|
|
|
+ pr_info("bridge: RTM_NEWNEIGH with invalid ether address\n");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
|
p = br_port_get_rtnl(dev);
|
|
p = br_port_get_rtnl(dev);
|
|
if (p == NULL) {
|
|
if (p == NULL) {
|
|
pr_info("bridge: RTM_NEWNEIGH %s not a bridge port\n",
|
|
pr_info("bridge: RTM_NEWNEIGH %s not a bridge port\n",
|