]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: tunnel: fix attribute checks in br_parse_vlan_tunnel_info
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tue, 7 Feb 2017 11:46:46 +0000 (12:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 19:05:30 +0000 (14:05 -0500)
commit4284330750757125da37bb98b552f131d7c8e51d
treeb12d3d016cb536db67ab242539b7c9c5b10d9a92
parent6647b0f556a6a42bbc52cd2762180035060a7ca4
bridge: tunnel: fix attribute checks in br_parse_vlan_tunnel_info

These checks should go after the attributes have been parsed otherwise
we're using tb uninitialized.

Fixes: 45c3d2f660a8 ("bridge: per vlan dst_metadata netlink support")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink_tunnel.c