diff options
author | arr <arr@FreeBSD.org> | 2002-04-19 17:45:22 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-04-19 17:45:22 +0000 |
commit | 122c24db48374dee47cf7a553f344ff0a6aee1e9 (patch) | |
tree | c3e1adf80f94ef52147a4d2fc164dab32797d93d /sys/netatm/uni/uniarp.c | |
parent | 1482903ceafd6c259928760686a1a308932b4d7c (diff) | |
download | FreeBSD-src-122c24db48374dee47cf7a553f344ff0a6aee1e9.zip FreeBSD-src-122c24db48374dee47cf7a553f344ff0a6aee1e9.tar.gz |
- Change KM_ macro calls to the appropriate function call.
- Nuke KM_ macros from port.h
This is a leadin step towards cleaning up this code as I wait for some
ATM cards and a ATM switch to arrive.
Diffstat (limited to 'sys/netatm/uni/uniarp.c')
-rw-r--r-- | sys/netatm/uni/uniarp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netatm/uni/uniarp.c b/sys/netatm/uni/uniarp.c index 6654299..4590aa5 100644 --- a/sys/netatm/uni/uniarp.c +++ b/sys/netatm/uni/uniarp.c @@ -965,14 +965,14 @@ uniarp_ioctl(code, data, arg1) break; } buf_len = i * sizeof(struct uniarp_prf); - buf_addr = KM_ALLOC(buf_len, M_DEVBUF, M_NOWAIT); + buf_addr = malloc(buf_len, M_DEVBUF, M_NOWAIT); if (buf_addr == NULL) { err = ENOMEM; break; } err = copyin(asp->asr_arp_pbuf, buf_addr, buf_len); if (err) { - KM_FREE(buf_addr, buf_len, M_DEVBUF); + free(buf_addr, M_DEVBUF); break; } } else { @@ -985,9 +985,7 @@ uniarp_ioctl(code, data, arg1) * Free any existing prefix address list */ if (uip->uip_prefix != NULL) { - KM_FREE(uip->uip_prefix, - uip->uip_nprefix * sizeof(struct uniarp_prf), - M_DEVBUF); + free(uip->uip_prefix, M_DEVBUF); uip->uip_prefix = NULL; uip->uip_nprefix = 0; } |