[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 <robert.olsson@its.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Robert Olsson and committed by David S. Miller 378be2c0 594a9dfa

+3 -2
+3 -2
net/core/pktgen.c
··· 3331 3331 } 3332 3332 3333 3333 if ((netif_queue_stopped(odev) || 3334 - netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping)) || 3335 - need_resched()) { 3334 + (pkt_dev->skb && 3335 + netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping))) || 3336 + need_resched()) { 3336 3337 idle_start = getCurUs(); 3337 3338 3338 3339 if (!netif_running(odev)) {