Skip to content

Commit 2eabcb8

Browse files
Fabian Frederickdavem330
authored andcommitted
vxlan: check rtnl_configure_link return code correctly
rtnl_configure_link is always checked if < 0 for error code. Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 546c044 commit 2eabcb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/vxlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3890,7 +3890,7 @@ static int __vxlan_dev_create(struct net *net, struct net_device *dev,
38903890
}
38913891

38923892
err = rtnl_configure_link(dev, NULL);
3893-
if (err)
3893+
if (err < 0)
38943894
goto unlink;
38953895

38963896
if (f) {

0 commit comments

Comments
 (0)