mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
[PATCH] pcnet32: Fix off-by-one in get_ringparam
Fix off-by-one in pcnet32_get_ringparam Signed-off-by: Don Fry <brazilnut@us.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
f2622a2b16
commit
6dcd60c2c7
@ -515,10 +515,10 @@ static void pcnet32_get_ringparam(struct net_device *dev,
|
||||
{
|
||||
struct pcnet32_private *lp = dev->priv;
|
||||
|
||||
ering->tx_max_pending = TX_MAX_RING_SIZE - 1;
|
||||
ering->tx_pending = lp->tx_ring_size - 1;
|
||||
ering->rx_max_pending = RX_MAX_RING_SIZE - 1;
|
||||
ering->rx_pending = lp->rx_ring_size - 1;
|
||||
ering->tx_max_pending = TX_MAX_RING_SIZE;
|
||||
ering->tx_pending = lp->tx_ring_size;
|
||||
ering->rx_max_pending = RX_MAX_RING_SIZE;
|
||||
ering->rx_pending = lp->rx_ring_size;
|
||||
}
|
||||
|
||||
static int pcnet32_set_ringparam(struct net_device *dev,
|
||||
|
Loading…
Reference in New Issue
Block a user