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>
This commit is contained in:
parent
546c044c96
commit
2eabcb8afe
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue