2
0
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:
David S. Miller 2008-08-17 23:37:16 -07:00
parent 13601cd8e4
commit 96d203169d

View File

@ -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;