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:
parent
1033a0f9cc
commit
6597b4e6fe
@ -1590,7 +1590,7 @@ ndis_alloc_packetpool(status, pool, descnum, protrsvdlen)
|
|||||||
((descnum + NDIS_POOL_EXTRA) + 1),
|
((descnum + NDIS_POOL_EXTRA) + 1),
|
||||||
M_DEVBUF, M_NOWAIT|M_ZERO);
|
M_DEVBUF, M_NOWAIT|M_ZERO);
|
||||||
|
|
||||||
if (pool == NULL) {
|
if (*pool == NULL) {
|
||||||
*status = NDIS_STATUS_RESOURCES;
|
*status = NDIS_STATUS_RESOURCES;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1813,7 +1813,7 @@ ndis_alloc_bufpool(status, pool, descnum)
|
|||||||
((descnum + NDIS_POOL_EXTRA) + 1),
|
((descnum + NDIS_POOL_EXTRA) + 1),
|
||||||
M_DEVBUF, M_NOWAIT|M_ZERO);
|
M_DEVBUF, M_NOWAIT|M_ZERO);
|
||||||
|
|
||||||
if (pool == NULL) {
|
if (*pool == NULL) {
|
||||||
*status = NDIS_STATUS_RESOURCES;
|
*status = NDIS_STATUS_RESOURCES;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user