提交 2d76b2f8 编写于 作者: J Jiri Pirko 提交者: David S. Miller

net: sched: cls_matchall: fix null pointer dereference

Since the head is guaranteed by the check above to be null, the call_rcu
would explode. Remove the previously logically dead code that was made
logically very much alive and kicking.

Fixes: 985538ee ("net/sched: remove redundant null check on head")
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 499fde66
...@@ -203,7 +203,6 @@ static int mall_change(struct net *net, struct sk_buff *in_skb, ...@@ -203,7 +203,6 @@ static int mall_change(struct net *net, struct sk_buff *in_skb,
*arg = (unsigned long) head; *arg = (unsigned long) head;
rcu_assign_pointer(tp->root, new); rcu_assign_pointer(tp->root, new);
call_rcu(&head->rcu, mall_destroy_rcu);
return 0; return 0;
err_replace_hw_filter: err_replace_hw_filter:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册