]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/net/vxlan.c
vxlan: fix a out of bounds access in __vxlan_find_mac
[linux-beck.git] / drivers / net / vxlan.c
index a85b1fcb3130d7b275447512b5d880162d67ecb6..65439188c5829e1cce0464e6c34be1c8bb5c18c3 100644 (file)
@@ -73,7 +73,7 @@ MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN");
 static int vxlan_net_id;
 static struct rtnl_link_ops vxlan_link_ops;
 
-static const u8 all_zeros_mac[ETH_ALEN];
+static const u8 all_zeros_mac[ETH_ALEN + 2];
 
 static int vxlan_sock_add(struct vxlan_dev *vxlan);