]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix error return code in __vxlan_dev_create()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Wed, 2 Dec 2020 09:58:42 +0000 (17:58 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 02:04:02 +0000 (18:04 -0800)
commita4d077cd458d3a1103696f841436b2ef1114e3ba
tree49fb96397fe83330bbaf74012e0f1ccafbc044a2
parent42060ed393f542730f47704e2cfbbcc7811dcc83
vxlan: fix error return code in __vxlan_dev_create()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: e3f889100f51 ("vxlan: add adjacent link to limit depth level")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Link: https://lore.kernel.org/r/1606903122-2098-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan.c