Commit 2eabcb8a authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller

vxlan: check rtnl_configure_link return code correctly

rtnl_configure_link is always checked if < 0 for error code.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 546c044c
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment