diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-05-11 18:45:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-19 11:20:26 +0300 |
commit | b047794cc36c77da3fd81cb578a58a8028f0d692 (patch) | |
tree | fcdf37cc8ee6f86aa9cc9c95f6add66ae5f67e1c /drivers | |
parent | f6294114ade4c46d9f54c6fd0afd1225855a8f0e (diff) | |
download | linux-b047794cc36c77da3fd81cb578a58a8028f0d692.tar.xz |
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions