Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965284AbWIFXKe (ORCPT ); Wed, 6 Sep 2006 19:10:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965285AbWIFXIz (ORCPT ); Wed, 6 Sep 2006 19:08:55 -0400 Received: from mail.kroah.org ([69.55.234.183]:27085 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S965068AbWIFXDD (ORCPT ); Wed, 6 Sep 2006 19:03:03 -0400 Date: Wed, 6 Sep 2006 15:57:28 -0700 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org, bunk@stusta.de Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, cltien@gmail.com, "David S. Miller" , Greg Kroah-Hartman Subject: [patch 26/37] PKTGEN: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too. Message-ID: <20060906225728.GA15922@kroah.com> References: <20060906224631.999046890@quad.kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="pktgen-make-sure-skb-nh-h-are-initialized-in-fill_packet_ipv6-too.patch" In-Reply-To: <20060906225444.GA15922@kroah.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1033 Lines: 34 -stable review patch. If anyone has any objections, please let us know. ------------------ From: David S. Miller [PKTGEN]: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too. Mirror the bug fix from fill_packet_ipv4() Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/core/pktgen.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-2.6.17.11.orig/net/core/pktgen.c +++ linux-2.6.17.11/net/core/pktgen.c @@ -2460,6 +2460,8 @@ static struct sk_buff *fill_packet_ipv6( skb->protocol = protocol; skb->dev = odev; skb->pkt_type = PACKET_HOST; + skb->nh.ipv6h = iph; + skb->h.uh = udph; if (pkt_dev->nfrags <= 0) pgh = (struct pktgen_hdr *)skb_put(skb, datalen); -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/