summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-12-07 22:33:12 +0000
committerphk <phk@FreeBSD.org>2000-12-07 22:33:12 +0000
commita4aabc2134b7b6d1ff28a6c349e0dffb736f0629 (patch)
treec7dc2d37f2a033f4b4cb969d84681377943ca7bc /sys/dev/ppbus
parent43724e0d95d7d1338fb278e62184d9d6e8626dbf (diff)
downloadFreeBSD-src-a4aabc2134b7b6d1ff28a6c349e0dffb736f0629.zip
FreeBSD-src-a4aabc2134b7b6d1ff28a6c349e0dffb736f0629.tar.gz
Don't use a private malloc(9) type for something this M_DEVBUFish.
Noticed long time ago by: bde
Diffstat (limited to 'sys/dev/ppbus')
-rw-r--r--sys/dev/ppbus/lpt.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c
index e6c0f6b..076b808 100644
--- a/sys/dev/ppbus/lpt.c
+++ b/sys/dev/ppbus/lpt.c
@@ -84,8 +84,6 @@
#include "ppbus_if.h"
#include <dev/ppbus/ppbio.h>
-MALLOC_DEFINE(M_LPT, "lpt", "LPT buffers");
-
#ifndef LPT_DEBUG
#define lprintf(args)
#else
@@ -551,8 +549,8 @@ lptopen(dev_t dev, int flags, int fmt, struct proc *p)
ppb_wctr(ppbus, sc->sc_control);
sc->sc_state = OPEN;
- sc->sc_inbuf = malloc(BUFSIZE, M_LPT, M_WAITOK);
- sc->sc_statbuf = malloc(BUFSTATSIZE, M_LPT, M_WAITOK);
+ sc->sc_inbuf = malloc(BUFSIZE, M_DEVBUF, M_WAITOK);
+ sc->sc_statbuf = malloc(BUFSTATSIZE, M_DEVBUF, M_WAITOK);
sc->sc_xfercnt = 0;
splx(s);
@@ -605,8 +603,8 @@ lptclose(dev_t dev, int flags, int fmt, struct proc *p)
break;
ppb_wctr(ppbus, LPC_NINIT);
- free(sc->sc_inbuf, M_LPT);
- free(sc->sc_statbuf, M_LPT);
+ free(sc->sc_inbuf, M_DEVBUF);
+ free(sc->sc_statbuf, M_DEVBUF);
end_close:
/* release the bus anyway
OpenPOWER on IntegriCloud