diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 0dafd8e6c6658820c8be6b16cbf75283805898d4..fd0ff97e3d81f3c4249c5a51e3da65b4f04d85f1 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -2727,7 +2727,7 @@ static int vxlan_validate(struct nlattr *tb[], struct nlattr *data[], } if (tb[IFLA_MTU]) { - u32 mtu = nla_get_u32(data[IFLA_MTU]); + u32 mtu = nla_get_u32(tb[IFLA_MTU]); if (mtu < ETH_MIN_MTU || mtu > ETH_MAX_MTU) return -EINVAL;