summaryrefslogtreecommitdiff
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2020-09-25 16:16:59 +0300
committerDavid S. Miller <davem@davemloft.net>2020-09-26 02:58:07 +0300
commit2eabcb8afe74304458ee47ee175bc16b770b7d20 (patch)
tree8ca41037cda1e2e542aad4e258eb47e7b2b7394c /drivers/net/vxlan.c
parent546c044c9651e81a16833806feff6b369bb5de33 (diff)
downloadlinux-2eabcb8afe74304458ee47ee175bc16b770b7d20.tar.xz
vxlan: check rtnl_configure_link return code correctly
rtnl_configure_link is always checked if < 0 for error code. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 14f903d09c01..1e9ab1002281 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) {