projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
546c044
)
vxlan: check rtnl_configure_link return code correctly
author
Fabian Frederick
<fabf@skynet.be>
Fri, 25 Sep 2020 13:16:59 +0000
(15:16 +0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 25 Sep 2020 23:58:07 +0000
(16:58 -0700)
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>
drivers/net/vxlan.c
patch
|
blob
|
history
diff --git
a/drivers/net/vxlan.c
b/drivers/net/vxlan.c
index
14f903d
..
1e9ab10
100644
(file)
--- 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) {