Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=378be2c08314fc46e3f814fa264ff8ebdb79712f
Commit:     378be2c08314fc46e3f814fa264ff8ebdb79712f
Parent:     594a9dfae7113d9601b2c353754c40d0b7e00a03
Author:     Robert Olsson <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 28 15:43:14 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Aug 28 15:43:14 2007 -0700

    [PKTGEN]: Fix multiqueue oops.
    
    Initially pkt_dev can be NULL this causes netif_subqueue_stopped to
    oops. The patch below should cure it. But maybe the pktgen TX logic
    should be reworked to better support the new multiqueue support.
    
    Signed-off-by: Robert Olsson <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/core/pktgen.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 7bae576..4ad62d3 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -3331,8 +3331,9 @@ static __inline__ void pktgen_xmit(struct pktgen_dev 
*pkt_dev)
        }
 
        if ((netif_queue_stopped(odev) ||
-            netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping)) ||
-            need_resched()) {
+            (pkt_dev->skb &&
+             netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping))) ||
+           need_resched()) {
                idle_start = getCurUs();
 
                if (!netif_running(odev)) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to