Cong Wang 8f918d3ff4 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>
2017-11-03 21:31:15 +09:00
..
2017-04-12 22:02:40 +02:00
2017-11-01 11:50:43 +09:00
2017-11-01 12:19:03 +09:00
2017-09-26 09:54:06 -07:00
2017-08-29 15:16:52 -07:00
2017-10-26 18:00:29 +09:00
2017-11-03 15:48:46 +09:00
2017-08-29 15:16:52 -07:00
2017-08-16 11:27:52 -07:00