pkt_sched: Fix missed RCU unlock in dev_queue_xmit()
Noticed by Jarek Poplawski. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
13601cd8e4
commit
96d203169d
1 changed files with 4 additions and 6 deletions
|
@ -1805,14 +1805,12 @@ int dev_queue_xmit(struct sk_buff *skb)
|
|||
spin_lock(root_lock);
|
||||
|
||||
if (unlikely(test_bit(__QDISC_STATE_DEACTIVATED, &q->state))) {
|
||||
spin_unlock(root_lock);
|
||||
kfree_skb(skb);
|
||||
rc = NET_XMIT_DROP;
|
||||
goto out_kfree_skb;
|
||||
} else {
|
||||
rc = qdisc_enqueue_root(skb, q);
|
||||
qdisc_run(q);
|
||||
}
|
||||
|
||||
rc = qdisc_enqueue_root(skb, q);
|
||||
qdisc_run(q);
|
||||
|
||||
spin_unlock(root_lock);
|
||||
|
||||
goto out;
|
||||
|
|
Loading…
Reference in a new issue