diff options
author | Jianbo Liu <jianbol@mellanox.com> | 2018-07-09 05:26:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-12 08:48:13 +0300 |
commit | 5e9a0fe492f89ff1c7583ee6ea89dc37b8c2e5c2 (patch) | |
tree | 83330d5b0d83102a537bbbff24a825748dcf5c5a /security/min_addr.c | |
parent | db560d1612f81c932df8d31e6f3bf7581c32ba91 (diff) | |
download | linux-5e9a0fe492f89ff1c7583ee6ea89dc37b8c2e5c2.tar.xz |
net/sched: flower: Fix null pointer dereference when run tc vlan command
Zahari issued tc vlan command without setting vlan_ethtype, which will
crash kernel. To avoid this, we must check tb[TCA_FLOWER_KEY_VLAN_ETH_TYPE]
is not null before use it.
Also we don't need to dump vlan_ethtype or cvlan_ethtype in this case.
Fixes: d64efd0926ba ('net/sched: flower: Add supprt for matching on QinQ vlan headers')
Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
Reported-by: Zahari Doychev <zahari.doychev@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/min_addr.c')
0 files changed, 0 insertions, 0 deletions