diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 666dd201c3d5fac335d9251456bf408675928376..7665817f3cb61fd047f6b80567b3761b7090818d 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -3703,6 +3703,7 @@ static int vxlan_config_validate(struct net *src_net, struct vxlan_config *conf, #if IS_ENABLED(CONFIG_IPV6) if (use_ipv6) { struct inet6_dev *idev = __in6_dev_get(lowerdev); + if (idev && idev->cnf.disable_ipv6) { NL_SET_ERR_MSG(extack, "IPv6 support disabled by administrator");