[PATCH net] gianfar : Do right check on num_txbdfree
    David Miller 
    davem at davemloft.net
       
    Thu Feb 26 21:03:18 EST 2009
    
    
  
From: Rini van Zetten <rini at arvoo.nl>
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 at 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.
    
    
More information about the Linuxppc-dev
mailing list