[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20101016.115531.183030637.davem@davemloft.net>
Date: Sat, 16 Oct 2010 11:55:31 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: error27@...il.com
Cc: netdev@...r.kernel.org, masa-korg@....okisemi.com,
kernel-janitors@...r.kernel.org
Subject: Re: [patch -next] pch_gbe: fix if condition in set_settings()
From: Dan Carpenter <error27@...il.com>
Date: Wed, 13 Oct 2010 11:36:19 +0200
> There were no curly braces in this if condition so it always enabled full
> duplex.
>
> And ecmd->speed is an unsigned short so it is never equal to -1. The
> effect is that mii_ethtool_sset() fails with -EINVAL and an error is
> printed to dmesg.
>
> Signed-off-by: Dan Carpenter <error27@...il.com>
Applied.
--
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