diff options
author | wpaul <wpaul@FreeBSD.org> | 2004-08-01 21:15:29 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2004-08-01 21:15:29 +0000 |
commit | 6597b4e6fef8703aae2b3527444089784d3e46d6 (patch) | |
tree | a383192929e9f0cb1ca53d291051f90743396245 /sys/compat | |
parent | 1033a0f9cc262d92db893ddfb7cbbc969895f931 (diff) | |
download | FreeBSD-src-6597b4e6fef8703aae2b3527444089784d3e46d6.zip FreeBSD-src-6597b4e6fef8703aae2b3527444089784d3e46d6.tar.gz |
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.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/ndis/subr_ndis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/ndis/subr_ndis.c b/sys/compat/ndis/subr_ndis.c index 3213b1c..8f271ce 100644 --- a/sys/compat/ndis/subr_ndis.c +++ b/sys/compat/ndis/subr_ndis.c @@ -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; } |