forcedeth: fix tx limit2 flag check

This is a fix for bug 572201 @ bugs.debian.org

This patch fixes the TX_LIMIT feature flag. The previous logic check
for TX_LIMIT2 also took into account a device that only had TX_LIMIT
set.

Reported-by: Stephen Mulcahu <stephen.mulcahy@deri.org>
Reported-by: Ben Huchings <ben@decadent.org.uk>
Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>



authored by Ayaz Abdulla and committed by David S. Miller 5c659322 a6d37024

+1 -1
+1 -1
drivers/net/forcedeth.c
··· 5899 /* Limit the number of tx's outstanding for hw bug */ 5900 if (id->driver_data & DEV_NEED_TX_LIMIT) { 5901 np->tx_limit = 1; 5902 - if ((id->driver_data & DEV_NEED_TX_LIMIT2) && 5903 pci_dev->revision >= 0xA2) 5904 np->tx_limit = 0; 5905 }
··· 5899 /* Limit the number of tx's outstanding for hw bug */ 5900 if (id->driver_data & DEV_NEED_TX_LIMIT) { 5901 np->tx_limit = 1; 5902 + if (((id->driver_data & DEV_NEED_TX_LIMIT2) == DEV_NEED_TX_LIMIT2) && 5903 pci_dev->revision >= 0xA2) 5904 np->tx_limit = 0; 5905 }