Jiri Pirko b047794cc3 net: sched: fix error path in tcf_proto_create() when modules are not configured
[ Upstream commit d68d75fdc34b0253c2bded7ed18cd60eb5a9599b ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-19 10:20:26 +02:00
..
2018-05-16 10:10:29 +02:00
2018-05-19 10:20:23 +02:00
2018-05-19 10:20:25 +02:00
2018-05-19 10:20:23 +02:00
2017-08-29 15:16:52 -07:00
2018-04-29 11:33:12 +02:00
2017-11-08 14:32:18 +09:00
2018-02-22 15:42:23 +01:00