Vlad Buslov a3df633a3c 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>
2019-02-25 10:13:38 -08:00
..
2018-12-10 15:54:34 -08:00
2017-12-13 13:18:46 -05:00
2018-07-24 14:10:42 -07:00
2018-05-24 22:56:15 -04:00
2018-05-24 22:56:15 -04:00
2018-05-24 22:56:15 -04:00
2018-05-24 22:56:15 -04:00
2018-05-24 22:56:15 -04:00
2011-01-19 23:31:12 -08:00
2011-01-19 23:31:12 -08:00
2018-11-16 20:39:34 -08:00
2018-07-24 14:44:00 -07:00