]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vlan: vlan_changelink() should propagate errors
authorEric Dumazet <edumazet@google.com>
Tue, 7 Jan 2020 09:42:25 +0000 (01:42 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 28 Apr 2020 18:03:17 +0000 (19:03 +0100)
commit14258a285f34ab0595b2859c5ded5d2fde955320
treed029f92b38c47f5b61021c72fcaddfdd94baa87c
parent755d6cc4f5b58ccd0547fa96dce21d7ab4af7cd3
vlan: vlan_changelink() should propagate errors

commit eb8ef2a3c50092bb018077c047b8dba1ce0e78e3 upstream.

Both vlan_dev_change_flags() and vlan_dev_set_egress_priority()
can return an error. vlan_changelink() should not ignore them.

Fixes: 07b5b17e157b ("[VLAN]: Use rtnl_link API")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/8021q/vlan_netlink.c