vlan: vlan_changelink() should propagate errors
authorEric Dumazet <edumazet@google.com>
Tue, 7 Jan 2020 09:42:25 +0000 (01:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jan 2020 21:35:14 +0000 (13:35 -0800)
commiteb8ef2a3c50092bb018077c047b8dba1ce0e78e3
treedf912ab83fce82448d560bddd8883a898aa7fb13
parent9bbd917e0bec9aebdbd0c8dbc966caec15eb33e9
vlan: vlan_changelink() should propagate errors

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>
net/8021q/vlan_netlink.c