看板 DFBSD_submit 關於我們 聯絡資訊
--nextPart7765159.TUPRylFfus Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Straightforward bug fix on error path. Noticed while reviewing the ndis code ... --nextPart7765159.TUPRylFfus Content-Type: text/x-diff; name="subr_ndis.c.diff" Content-Transfer-Encoding: 8Bit Content-Disposition: attachment; filename="subr_ndis.c.diff" --- subr_ndis.c.old 2004-11-17 08:50:54.000000000 -0500 +++ subr_ndis.c 2004-11-17 08:51:50.000000000 -0500 @@ -1561,7 +1561,7 @@ ((descnum + NDIS_POOL_EXTRA) + 1), M_DEVBUF, M_WAITOK|M_ZERO); - if (pool == NULL) { + if (*pool == NULL) { *status = NDIS_STATUS_RESOURCES; return; } @@ -1784,7 +1784,7 @@ ((descnum + NDIS_POOL_EXTRA) + 1), M_DEVBUF, M_WAITOK|M_ZERO); - if (pool == NULL) { + if (*pool == NULL) { *status = NDIS_STATUS_RESOURCES; return; } --nextPart7765159.TUPRylFfus--