Jiri Pirko d68d75fdc3 net: sched: fix error path in tcf_proto_create() when modules are not configured
In case modules are not configured, error out when tp->ops is null
and prevent later null pointer dereference.

Fixes: 33a48927c193 ("sched: push TC filter protocol creation into a separate function")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-05-11 16:34:38 -04:00
..
2018-05-04 12:52:47 -04:00
2018-03-27 13:18:09 -04:00
2018-05-03 15:14:57 -04:00
2018-05-10 15:42:52 -04:00
2018-03-27 13:18:09 -04:00
2018-05-08 00:11:40 -04:00
2018-03-27 13:18:09 -04:00
2018-05-04 12:54:38 -04:00
2018-04-24 13:17:08 -04:00
2018-03-27 13:18:09 -04:00
2018-05-03 14:47:31 -04:00
2018-04-15 23:49:27 -04:00
2018-02-01 09:51:57 -08:00