diff options
Diffstat (limited to 'sys/dev/hea/eni_buffer.c')
-rw-r--r-- | sys/dev/hea/eni_buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/hea/eni_buffer.c b/sys/dev/hea/eni_buffer.c index d1946f0..026ce5d 100644 --- a/sys/dev/hea/eni_buffer.c +++ b/sys/dev/hea/eni_buffer.c @@ -38,7 +38,10 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/socket.h> +#include <sys/malloc.h> + #include <net/if.h> + #include <netatm/port.h> #include <netatm/queue.h> #include <netatm/atm.h> @@ -316,7 +319,7 @@ eni_allocate_buffer ( eup, size ) Mbd *etmp; /* larger then we need - split it */ - etmp = (Mbd *)KM_ALLOC(sizeof(Mbd), M_DEVBUF, M_NOWAIT ); + etmp = (Mbd *)malloc(sizeof(Mbd), M_DEVBUF, M_NOWAIT); if ( etmp == (Mbd *)NULL ) { /* * Couldn't allocate new descriptor. Indicate |