summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2003-02-04 23:26:36 +0000
committermartin <martin@NetBSD.org>2003-02-04 23:26:36 +0000
commit688ebd679ee4749f98db2c08e63f2efa0040f32f (patch)
tree7420e7aa2e246265ab193ee07584112183ca6db4 /sys/dev
parent8a49ec08e429fe0bf29341ed9c339358f6018333 (diff)
Fix swapped malloc parameters - caught by recent malloce(9) changes.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/daic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/daic.c b/sys/dev/ic/daic.c
index 5aa88365b9e..c750f76b6ce 100644
--- a/sys/dev/ic/daic.c
+++ b/sys/dev/ic/daic.c
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: daic.c,v 1.12 2002/04/14 12:24:26 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: daic.c,v 1.13 2003/02/04 23:26:36 martin Exp $");
/*
* daic.c: MI driver for Diehl active ISDN cards (S, SX, SXn, SCOM, QUADRO)
@@ -1018,7 +1018,7 @@ daic_connect_request(struct call_desc *cd)
id = daic_assign(sc, port, DAIC_GLOBALID_DCHAN, p - parms, parms);
/* map it to the call descriptor id */
- assoc = malloc(sizeof(struct outcallentry), 0, M_DEVBUF);
+ assoc = malloc(sizeof(struct outcallentry), M_DEVBUF, 0);
assoc->cdid = cd->cdid;
assoc->dchan_id = id;
x = splnet();