summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2011-01-07 00:43:12 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2011-01-07 00:43:12 +0000
commitf35b085843ac955e341cfa451ce633f32fd875a6 (patch)
tree7e4174f7e1a2906e4df632ac3e73ac503a87c391 /sys/arch
parent6e2a6fae1afc7773618d429b25c4a5e3043267a3 (diff)
Fix malloc(9) call with swapped type and flags arguments.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/vdsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vdsp.c b/sys/arch/sparc64/dev/vdsp.c
index 163cca55b1b..60d52a0fe5c 100644
--- a/sys/arch/sparc64/dev/vdsp.c
+++ b/sys/arch/sparc64/dev/vdsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vdsp.c,v 1.8 2011/01/06 23:26:48 kettenis Exp $ */
+/* $OpenBSD: vdsp.c,v 1.9 2011/01/07 00:43:11 kettenis Exp $ */
/*
* Copyright (c) 2009, 2011 Mark Kettenis
*
@@ -1005,7 +1005,7 @@ vdsp_alloc(void *arg1, void *arg2)
KASSERT(sc->sc_num_descriptors <= VDSK_MAX_DESCRIPTORS);
KASSERT(sc->sc_descriptor_size <= VDSK_MAX_DESCRIPTOR_SIZE);
sc->sc_vd = malloc(sc->sc_num_descriptors * sc->sc_descriptor_size,
- M_WAITOK, M_DEVBUF);
+ M_DEVBUF, M_WAITOK);
bzero(&dr, sizeof(dr));
dr.tag.type = VIO_TYPE_CTRL;