Re: [PATCH net] gianfar : Do right check on num_txbdfree
From: David Miller <davem@davemloft.net>
Date: 2009-02-26 10:03:18
Also in:
linuxppc-dev
From: David Miller <davem@davemloft.net>
Date: 2009-02-26 10:03:18
Also in:
linuxppc-dev
From: Rini van Zetten <redacted> Date: Thu, 26 Feb 2009 09:56:58 +0100
This patch fixes a wrong check on num_txbdfree. It could lead to num_txbdfree become nagative. Result was that the gianfar stops sending data. Signed-off-by: Rini van Zetten <rini at arvoo dot nl
Please use rini@arvoo.nl in your signoffs, you cannot hide on the inna-net.
- if (nr_frags > priv->num_txbdfree) {
+ if ( (nr_frags+1) > priv->num_txbdfree) {
Please don't put a space between the parens there "( (", like
that.