diff options
author | Zhang Changzhong <zhangchangzhong@huawei.com> | 2020-12-04 09:48:56 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-05 00:41:06 +0100 |
commit | ee4f52a8de2c6f78b01f10b4c330867d88c1653a (patch) | |
tree | 7c1b1268c50c41320b101498b767c4441c6fffb4 /net/openvswitch | |
parent | ipv4: fix error return code in rtm_to_fib_config() (diff) | |
download | linux-ee4f52a8de2c6f78b01f10b4c330867d88c1653a.tar.xz linux-ee4f52a8de2c6f78b01f10b4c330867d88c1653a.zip |
net: bridge: vlan: fix error return code in __vlan_add()
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: f8ed289fab84 ("bridge: vlan: use br_vlan_(get|put)_master to deal with refcounts")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Link: https://lore.kernel.org/r/1607071737-33875-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/openvswitch')
0 files changed, 0 insertions, 0 deletions