small ndis fix

看板DFBSD_submit作者時間21年前 (2004/11/18 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/8 (看更多)
--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--
文章代碼(AID): #11cv7z00 (DFBSD_submit)
文章代碼(AID): #11cv7z00 (DFBSD_submit)