diff options
author | Fabian Frederick <fabf@skynet.be> | 2020-09-25 15:16:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-25 16:58:07 -0700 |
commit | 2eabcb8afe74304458ee47ee175bc16b770b7d20 (patch) | |
tree | 8ca41037cda1e2e542aad4e258eb47e7b2b7394c | |
parent | 546c044c9651e81a16833806feff6b369bb5de33 (diff) |
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>
-rw-r--r-- | drivers/net/vxlan.c | 2 |
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) { |