diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2017-11-02 17:32:08 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-03 21:31:15 +0900 |
commit | 8f918d3ff4a1283a1693afe2b4c8e1844674ca15 (patch) | |
tree | 63b2a6ab926d369762e0b7e0bbfaa205a81f4471 /lib/string.c | |
parent | f67971e683e81d7ba4739728511ae6e52a1b6321 (diff) | |
download | linux-8f918d3ff4a1283a1693afe2b4c8e1844674ca15.tar.gz linux-8f918d3ff4a1283a1693afe2b4c8e1844674ca15.tar.bz2 linux-8f918d3ff4a1283a1693afe2b4c8e1844674ca15.zip |
net_sched: check NULL in tcf_block_put()
Callers of tcf_block_put() could pass NULL so
we can't use block->q before checking if block is
NULL or not.
tcf_block_put_ext() callers are fine, it is always
non-NULL.
Fixes: 8c4083b30e56 ("net: sched: add block bind/unbind notif. and extended block_get/put")
Reported-by: Dave Taht <dave.taht@gmail.com>
Cc: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions