[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100519.131219.172592870.davem@davemloft.net>
Date: Wed, 19 May 2010 13:12:19 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: sonic.adi@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 06/11] netdev: bfin_mac: avoid tx skb overflows in the
tx DMA ring
From: Sonic Zhang <sonic.adi@...il.com>
Date: Wed, 19 May 2010 17:23:16 +0800
> No, this doesn't happen, because before ndo_start_xmit() returns, the
> old TX buffers and skbs in the ring, which finished DMA operation, are
> freed. The only difference is that the free operation of a skb is done
> in next tx transfer.
This is still illegal.
What if TX activity stops right then, and there is no "next tx
transfer"?
That SKB will never get freed, ever.
You have to fix this.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists