diff options
author | arr <arr@FreeBSD.org> | 2002-05-23 00:34:12 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-05-23 00:34:12 +0000 |
commit | 4fe0504ac98cad7ad7323ec4abdcaebff302914f (patch) | |
tree | f14d51e27572377253b16062ce1be02fe996d96f /sys/netatm/ipatm/ipatm_if.c | |
parent | 0da89370adfe17ba00f07ee8e04cf76817c813b2 (diff) | |
download | FreeBSD-src-4fe0504ac98cad7ad7323ec4abdcaebff302914f.zip FreeBSD-src-4fe0504ac98cad7ad7323ec4abdcaebff302914f.tar.gz |
- Turn two more storage pools into UMA zones and make the related memory
allocations and frees use the UMA api.
Diffstat (limited to 'sys/netatm/ipatm/ipatm_if.c')
-rw-r--r-- | sys/netatm/ipatm/ipatm_if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netatm/ipatm/ipatm_if.c b/sys/netatm/ipatm/ipatm_if.c index b811131..368655a 100644 --- a/sys/netatm/ipatm/ipatm_if.c +++ b/sys/netatm/ipatm/ipatm_if.c @@ -124,7 +124,7 @@ ipatm_nifstat(cmd, nip, arg) /* * Get a new interface block */ - inp = (struct ip_nif *)atm_allocate(&ipatm_nifpool); + inp = uma_zalloc(ipatm_nif_zone, M_WAITOK); if (inp == NULL) { err = ENOMEM; break; @@ -168,7 +168,7 @@ ipatm_nifstat(cmd, nip, arg) * Clean up and free block */ UNLINK(inp, struct ip_nif, ipatm_nif_head, inf_next); - atm_free((caddr_t)inp); + uma_zfree(ipatm_nif_zone, inp); break; case NCM_SETADDR: |