Date: Wed, 7 Jan 2004 11:26:47 -0800 (PST) From: Bill Paul <wpaul@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/ndis subr_ndis.c Message-ID: <200401071926.i07JQlEp029284@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 2004/01/07 11:26:47 PST FreeBSD src repository Modified files: sys/compat/ndis subr_ndis.c Log: It appears drivers may call NdisWriteErrorLogEntry() with locks held. However, if we need to translate a unicode message table message, ndis_unicode_to_ascii() might malloc() some memory, which causes a warning from witness. Avoid this by using some stack space to hold the translated message. (Also bounds check to make sure we don't overrun the stack buffer.) Revision Changes Path 1.30 +5 -3 src/sys/compat/ndis/subr_ndis.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401071926.i07JQlEp029284>