Skip to content
Commit 4710b2ba authored by David Gibson's avatar David Gibson Committed by David S. Miller
Browse files

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: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 73409f3b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment