1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Fix an off by one error in struct nve_tx_desc's frags[] array as a result

of the nvenet lib upgrade (the constant went from 63 (2^n - 1) to
32 (2^n)).  For reasons that are not obvious to me this fixes the driver
on at least some NICs.

MFC after:	3 days
This commit is contained in:
John Baldwin 2006-12-05 15:31:05 +00:00
parent 0f0a3e4f82
commit 81b6f8d5df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164915

View File

@ -106,7 +106,7 @@ struct nve_tx_desc {
struct nve_map_buffer buf;
u_int16_t buflength;
u_int32_t numfrags;
bus_dma_segment_t frags[NV_MAX_FRAGS + 1];
bus_dma_segment_t frags[NV_MAX_FRAGS];
};
struct nve_softc {