diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-07-06 14:44:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-07 20:04:35 +0900 |
commit | 000244d3dc1f8114e38fe9ee2d9a0986404d9cbe (patch) | |
tree | dd63537ddbfc95239f1a11e67dc0b76560764e40 /net/smc | |
parent | 843789f6dd6ae1651a77ac99c13bcaf191ebe05c (diff) | |
download | linux-000244d3dc1f8114e38fe9ee2d9a0986404d9cbe.tar.bz2 |
net: bridge: fix br_vlan_get_{pvid,info} return values
These two functions return the regular -EINVAL failure in the normal
code path, but return a nonstandard '-1' error otherwise, which gets
interpreted as -EPERM.
Let's change it to -EINVAL for the dummy functions as well.
Fixes: 4d4fd36126d6 ("net: bridge: Publish bridge accessor functions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
0 files changed, 0 insertions, 0 deletions