|
@@ -351,6 +351,8 @@ void tcf_block_put_ext(struct tcf_block *block, struct Qdisc *q,
|
|
{
|
|
{
|
|
struct tcf_chain *chain;
|
|
struct tcf_chain *chain;
|
|
|
|
|
|
|
|
+ if (!block)
|
|
|
|
+ return;
|
|
/* Hold a refcnt for all chains, except 0, so that they don't disappear
|
|
/* Hold a refcnt for all chains, except 0, so that they don't disappear
|
|
* while we are iterating.
|
|
* while we are iterating.
|
|
*/
|
|
*/
|
|
@@ -377,8 +379,6 @@ void tcf_block_put(struct tcf_block *block)
|
|
{
|
|
{
|
|
struct tcf_block_ext_info ei = {0, };
|
|
struct tcf_block_ext_info ei = {0, };
|
|
|
|
|
|
- if (!block)
|
|
|
|
- return;
|
|
|
|
tcf_block_put_ext(block, block->q, &ei);
|
|
tcf_block_put_ext(block, block->q, &ei);
|
|
}
|
|
}
|
|
|
|
|