vlan: vlan_changelink() should propagate errors
authorEric Dumazet <edumazet@google.com>
Tue, 7 Jan 2020 09:42:25 +0000 (01:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:21:50 +0000 (12:21 +0100)
commit25037e4b197bf04a9c8467b9ce1d76aefc8fa703
tree0300ac8ade7a183fe80dac549fe6b8aaeeb13b65
parent196a9a408c3eb8f590f0f7088cafe80c7c1564e7
vlan: vlan_changelink() should propagate errors

[ Upstream commit eb8ef2a3c50092bb018077c047b8dba1ce0e78e3 ]

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/8021q/vlan_netlink.c