Re: [PATCH net] net: bridge: fix br_vlan_get_{pvid,info} return values
From: David Miller
Date: Sat Jul 07 2018 - 07:05:37 EST
From: Arnd Bergmann <arnd@xxxxxxxx>
Date: Fri, 6 Jul 2018 14:44:02 +0200
> 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@xxxxxxxx>
Applied, thanks Arnd.