public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 8139too: too early dev_kfree_skb
@ 2002-01-09 19:35 Pozsar Balazs
  2002-01-09 19:54 ` Andreas Dilger
  0 siblings, 1 reply; 3+ messages in thread
From: Pozsar Balazs @ 2002-01-09 19:35 UTC (permalink / raw)
  To: jgarzik; +Cc: linux-kernel


This patch was originally sent to lkml on nov 30, 2001, from
<kumon@flab.fujitsu.co.jp>, but it is not in 2.4.18-pre2.

Was it just overlooked, or is it unneccessary?

Note that I rediffed it, and moved the +dev_kfree_skb after the DPRINTK,
because it also uses the len.

patch follows:

--- linux/drivers/net/8139too.c.orig	Fri Dec 21 12:41:54 2001
+++ linux/drivers/net/8139too.c	Wed Jan  9 20:19:43 2002
@@ -1643,7 +1643,6 @@

 	if (likely(len < TX_BUF_SIZE)) {
 		skb_copy_and_csum_dev(skb, tp->tx_buf[entry]);
-		dev_kfree_skb(skb);
 	} else {
 		dev_kfree_skb(skb);
 		tp->stats.tx_dropped++;
@@ -1667,6 +1666,7 @@
 	DPRINTK ("%s: Queued Tx packet size %u to slot %d.\n",
 		 dev->name, len, entry);

+	dev_kfree_skb(skb);
 	return 0;
 }


-- 
Balazs Pozsar.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 8139too: too early dev_kfree_skb
  2002-01-09 19:35 [PATCH] 8139too: too early dev_kfree_skb Pozsar Balazs
@ 2002-01-09 19:54 ` Andreas Dilger
  2002-01-18  5:16   ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Dilger @ 2002-01-09 19:54 UTC (permalink / raw)
  To: Pozsar Balazs; +Cc: jgarzik, linux-kernel

On Jan 09, 2002  20:35 +0100, Pozsar Balazs wrote:
> This patch was originally sent to lkml on nov 30, 2001, from
> <kumon@flab.fujitsu.co.jp>, but it is not in 2.4.18-pre2.
> 
> Was it just overlooked, or is it unneccessary?

I seem to recall that it was solved differently.  Please read the whole
thread.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 8139too: too early dev_kfree_skb
  2002-01-09 19:54 ` Andreas Dilger
@ 2002-01-18  5:16   ` Jeff Garzik
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2002-01-18  5:16 UTC (permalink / raw)
  To: Andreas Dilger; +Cc: Pozsar Balazs, linux-kernel

Andreas Dilger wrote:
> 
> On Jan 09, 2002  20:35 +0100, Pozsar Balazs wrote:
> > This patch was originally sent to lkml on nov 30, 2001, from
> > <kumon@flab.fujitsu.co.jp>, but it is not in 2.4.18-pre2.
> >
> > Was it just overlooked, or is it unneccessary?
> 
> I seem to recall that it was solved differently.  Please read the whole
> thread.

And IIRC you were the one that solved it differently :)

-- 
Jeff Garzik      | Alternate titles for LOTR:
Building 1024    | Fast Times at Uruk-Hai
MandrakeSoft     | The Took, the Elf, His Daughter and Her Lover
                 | Samwise Gamgee: International Hobbit of Mystery

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-18  5:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-09 19:35 [PATCH] 8139too: too early dev_kfree_skb Pozsar Balazs
2002-01-09 19:54 ` Andreas Dilger
2002-01-18  5:16   ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox