Re: 2.2.11: Complicated memory leak...

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 12 Aug 1999 17:29:05 +0100 (BST)


> reading the above the fix should look like this patch:
>
> --- 2.2.11/drivers/net/rtl8139.c Thu Aug 12 02:32:30 1999
> +++ /tmp/rtl8139.c Thu Aug 12 16:54:19 1999
> @@ -1044,7 +1044,7 @@
> if (status & (TxOK | TxErr)) {
> unsigned int dirty_tx = tp->dirty_tx;
>
> - while (tp->cur_tx - dirty_tx > 0) {
> + while (tp->cur_tx > dirty_tx) {
> int entry = dirty_tx % NUM_TX_DESC;
> int txstatus = inl(ioaddr + TxStatus0 + entry*4);

This isnt the bug however. I have reports from other network card cases, and
that backing rtl8139.c out doesnt change it. It seems to have appeared about
the time the 2nd set of TCP changes went in

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/