Correct the size used to allocate ndis_txarray. It should be

NDIS_TXPKTS now, not ndis_maxpkts.
This commit is contained in:
Bill Paul 2005-10-19 03:14:11 +00:00
parent 4350fcab1b
commit baa6396dc1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151460

View File

@ -591,7 +591,7 @@ ndis_attach(dev)
sc->ndis_maxpkts = 10;
sc->ndis_txarray = malloc(sizeof(ndis_packet *) *
sc->ndis_maxpkts, M_DEVBUF, M_NOWAIT|M_ZERO);
NDIS_TXPKTS, M_DEVBUF, M_NOWAIT|M_ZERO);
/* Allocate a pool of ndis_packets for TX encapsulation. */