diff options
author | Junchang Wang <junchangwang@gmail.com> | 2010-11-07 23:19:43 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-08 12:17:07 -0800 |
commit | eb589063ed482f5592b1378e4136d6998419af6e (patch) | |
tree | bfc87b5e9d2efe293edaf4fa79a98e2773c7ff47 /net/core/pktgen.c | |
parent | 18543a643fae694982c7d89c22436885f3506497 (diff) | |
download | kernel_samsung_crespo-eb589063ed482f5592b1378e4136d6998419af6e.zip kernel_samsung_crespo-eb589063ed482f5592b1378e4136d6998419af6e.tar.gz kernel_samsung_crespo-eb589063ed482f5592b1378e4136d6998419af6e.tar.bz2 |
pktgen: correct uninitialized queue_map
This fix a bug reported by backyes.
Right the first time pktgen's using queue_map that's not been initialized
by set_cur_queue_map(pkt_dev);
Signed-off-by: Junchang Wang <junchangwang@gmail.com>
Signed-off-by: Backyes <backyes@mail.ustc.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 1992cd0..33bc382 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -2612,8 +2612,8 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev, /* Update any of the values, used when we're incrementing various * fields. */ - queue_map = pkt_dev->cur_queue_map; mod_cur_headers(pkt_dev); + queue_map = pkt_dev->cur_queue_map; datalen = (odev->hard_header_len + 16) & ~0xf; @@ -2976,8 +2976,8 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev, /* Update any of the values, used when we're incrementing various * fields. */ - queue_map = pkt_dev->cur_queue_map; mod_cur_headers(pkt_dev); + queue_map = pkt_dev->cur_queue_map; skb = __netdev_alloc_skb(odev, pkt_dev->cur_pkt_size + 64 |