]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb866602295c728c14c2d24b62794069136b05419
treedf912ab83fce82448d560bddd8883a898aa7fb13
parentcb1c7e11fb7ac563f050035cda6b5c2d8d584b22
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: 150606db5e80 ("[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