mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-19 16:14:13 +08:00
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
@ -1805,14 +1805,12 @@ gso:
|
||||
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 New Issue
Block a user