From: Fabian Frederick Date: Fri, 25 Sep 2020 13:16:59 +0000 (+0200) Subject: vxlan: check rtnl_configure_link return code correctly X-Git-Tag: v5.10.7~1401^2~144^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2eabcb8afe74304458ee47ee175bc16b770b7d20;p=platform%2Fkernel%2Flinux-rpi.git vxlan: check rtnl_configure_link return code correctly rtnl_configure_link is always checked if < 0 for error code. Signed-off-by: Fabian Frederick Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 14f903d..1e9ab10 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -3890,7 +3890,7 @@ static int __vxlan_dev_create(struct net *net, struct net_device *dev, } err = rtnl_configure_link(dev, NULL); - if (err) + if (err < 0) goto unlink; if (f) {