]> 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)
commit051940a9f8d2c711be13dea878e269c993b2c8ff
treeb12d3d016cb536db67ab242539b7c9c5b10d9a92
parent9163aa36905fd111f80ca7f7efeea3790ccb6ca5
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: 86a92b014fa5 ("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