[NET_SCHED]: Fix qdisc_restart return value when dequeue is empty

My previous patch that changed the return value of qdisc_restart
incorrectly made the case where dequeue returns empty continue
processing packets.

This patch is based on diagnosis and fix by Patrick McHardy.

Reported-and-debugged-by: Anant Nitya <kernel@prachanda.info>

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Herbert Xu 2007-05-23 14:30:44 -07:00 коммит произвёл David S. Miller
Родитель d333fc8d30
Коммит 36247f5421
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -169,8 +169,8 @@ requeue:
else
q->ops->requeue(skb, q);
netif_schedule(dev);
return 0;
}
return 0;
out:
BUG_ON((int) q->q.qlen < 0);