From: Jeff Garzik <jeff@garzik.org>
To: Auke Kok <auke-jan.h.kok@intel.com>
Cc: davem@davemloft.net, hadi@cyberus.ca, krkumar2@in.ibm.com,
netdev@vger.kernel.org
Subject: Re: [PATCH] e1000e: Do not allow requeue of freed skb
Date: Sat, 29 Sep 2007 00:50:15 -0400 [thread overview]
Message-ID: <46FDD987.7020604@garzik.org> (raw)
In-Reply-To: <20070921164115.31055.49849.stgit@localhost.localdomain>
Auke Kok wrote:
> From: Krishna Kumar <krkumar2@in.ibm.com>
>
> Returning BUSY will make qdisc_restart enqueue the skb which was already
> freed. The bad skb was correctly freed and we should return NETDEV_TX_OK.
>
> First spotted by Jeff Garzik on 08/13/07.
>
> Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
> ---
>
> drivers/net/e1000e/netdev.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
> index 372da46..03f7472 100644
> --- a/drivers/net/e1000e/netdev.c
> +++ b/drivers/net/e1000e/netdev.c
> @@ -3537,7 +3537,7 @@ static int e1000_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
> /* handle pci_map_single() error in e1000_tx_map */
> dev_kfree_skb_any(skb);
> spin_unlock_irqrestore(&adapter->tx_queue_lock, irq_flags);
> - return NETDEV_TX_BUSY;
> + return NETDEV_TX_OK;
applied
prev parent reply other threads:[~2007-09-29 4:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-21 16:41 [PATCH] e1000e: Do not allow requeue of freed skb Auke Kok
2007-09-29 4:50 ` Jeff Garzik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46FDD987.7020604@garzik.org \
--to=jeff@garzik.org \
--cc=auke-jan.h.kok@intel.com \
--cc=davem@davemloft.net \
--cc=hadi@cyberus.ca \
--cc=krkumar2@in.ibm.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.