]> git.itanic.dy.fi Git - linux-stable/commit
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 10:22:52 +0000 (11:22 +0100)
commit0d95600228646fe044e3d63b15ddad5a248e5da0
treeae9ce92709e713f50cc4f466b9c095dc5018d7c7
parent2d88d15c134a7213e21086e53039f3ae260f0ae1
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