mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
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: 985538eee0
("net/sched: remove redundant null check on head")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
499fde662f
commit
2d76b2f8b5
1 changed files with 0 additions and 1 deletions
|
@ -203,7 +203,6 @@ static int mall_change(struct net *net, struct sk_buff *in_skb,
|
|||
|
||||
*arg = (unsigned long) head;
|
||||
rcu_assign_pointer(tp->root, new);
|
||||
call_rcu(&head->rcu, mall_destroy_rcu);
|
||||
return 0;
|
||||
|
||||
err_replace_hw_filter:
|
||||
|
|
Loading…
Reference in a new issue