diff options
author | 2019-02-25 17:28:27 +0200 | |
---|---|---|
committer | 2019-02-25 10:13:38 -0800 | |
commit | a3df633a3c92bb96b06552c3f828d7c267774379 (patch) | |
tree | e88bc2c551807bd0e12efef7635ca866148fd624 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | net: dsa: fix a leaked reference by adding missing of_node_put (diff) | |
download | linux-rng-a3df633a3c92bb96b06552c3f828d7c267774379.tar.xz linux-rng-a3df633a3c92bb96b06552c3f828d7c267774379.zip |
net: sched: act_tunnel_key: fix NULL pointer dereference during init
Metadata pointer is only initialized for action TCA_TUNNEL_KEY_ACT_SET, but
it is unconditionally dereferenced in tunnel_key_init() error handler.
Verify that metadata pointer is not NULL before dereferencing it in
tunnel_key_init error handling code.
Fixes: ee28bb56ac5b ("net/sched: fix memory leak in act_tunnel_key_init()")
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions