In ndis_alloc_bufpool() and ndis_alloc_packetpool(), the test to see if

allocating pool memory succeeded was checking the wrong pointer (should
have been looking at *pool, not pool). Corrected this.
This commit is contained in:
wpaul 2004-08-01 21:15:29 +00:00
parent 1033a0f9cc
commit 6597b4e6fe

View File

@ -1590,7 +1590,7 @@ ndis_alloc_packetpool(status, pool, descnum, protrsvdlen)
((descnum + NDIS_POOL_EXTRA) + 1),
M_DEVBUF, M_NOWAIT|M_ZERO);
if (pool == NULL) {
if (*pool == NULL) {
*status = NDIS_STATUS_RESOURCES;
return;
}
@ -1813,7 +1813,7 @@ ndis_alloc_bufpool(status, pool, descnum)
((descnum + NDIS_POOL_EXTRA) + 1),
M_DEVBUF, M_NOWAIT|M_ZERO);
if (pool == NULL) {
if (*pool == NULL) {
*status = NDIS_STATUS_RESOURCES;
return;
}