summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/setbuffer.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-03-21 18:40:31 +0000
committerjhb <jhb@FreeBSD.org>2007-03-21 18:40:31 +0000
commitf372b09e82aa133caab5a6d13123293d6270ec7d (patch)
treecfb66fd4e8928eaec06ab73cba6af6397ff637d2 /lib/libc/stdio/setbuffer.c
parentb4b4be32dcf09b643b9e3eecd3971e380f2909fb (diff)
downloadFreeBSD-src-f372b09e82aa133caab5a6d13123293d6270ec7d.zip
FreeBSD-src-f372b09e82aa133caab5a6d13123293d6270ec7d.tar.gz
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
Diffstat (limited to 'lib/libc/stdio/setbuffer.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud