]> git.baikalelectronics.ru Git - kernel.git/commit
netxen: Correct off-by-one errors in bounds checks
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 20 Dec 2013 04:10:44 +0000 (15:10 +1100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Dec 2013 18:08:25 +0000 (13:08 -0500)
commitc0c1f339cad1d50a65807875cf289303d73d380a
treef1d123b07ed76f251292b6f1a26f0bda98122068
parentc4238b80e6db8e73e06b4c2ed35ab788544a58cb
netxen: Correct off-by-one errors in bounds checks

netxen_process_lro() contains two bounds checks.  One for the ring number
against the number of rings, and one for the Rx buffer ID against the
array of receive buffers.

Both of these have off-by-one errors, using > instead of >=. The correct
versions are used in netxen_process_rcv(), they're just wrong in
netxen_process_lro().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c