]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: fix possible null pointer deref in tcf_block_put
authorJiri Pirko <jiri@mellanox.com>
Thu, 21 Dec 2017 12:13:59 +0000 (13:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Dec 2017 18:02:05 +0000 (13:02 -0500)
commitdf06b31fd4f7a7fb1c42d27f565803207fc5ea5a
treeb58ac455944c25998e868de3e600fa2ca6906417
parentf21e017634e154994bd455e7b66ef0cc8ab42534
net: sched: fix possible null pointer deref in tcf_block_put

We need to check block for being null in both tcf_block_put and
tcf_block_put_ext.

Fixes: 3c1646ac98cd ("net: sched: fix clsact init error path")
Reported-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c