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