cvs commit: src/sys/dev/iwi if_iwi.c
John Baldwin
jhb at FreeBSD.org
Wed Mar 21 18:40:32 UTC 2007
jhb 2007-03-21 18:40:31 UTC
FreeBSD src repository
Modified files:
sys/dev/iwi if_iwi.c
Log:
Fix an off-by-one error in iwi_init_fw_dma(). It didn't reuse the existing
DMA memory for a firmware load if it was the exact size needed, thus in the
common case the driver was constantly free'ing and reallocating the DMA
buffer and it would eventually begin to fail. With this fix, iwi0 reuses
the same buffer the entire time and no longer fails to load the firmware
after the machine has been up for a while.
MFC after: 1 week
Revision Changes Path
1.52 +1 -1 src/sys/dev/iwi/if_iwi.c
More information about the cvs-src
mailing list