Date: Wed, 21 Mar 2007 18:40:31 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/iwi if_iwi.c Message-ID: <200703211840.l2LIeVJH082135@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703211840.l2LIeVJH082135>