summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/msi.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-08 10:24:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-08 10:24:27 +0000
commit0a781cacb00fa6ece74e451af31d8c8432a8e6f6 (patch)
treeff6cb517fd23b120e22a75457606ee25538325bf /sys/arch/sparc64/dev/msi.c
parentc3b32008dd21a7dbcb3320913bb597c6a15e35a5 (diff)
sizes for free(); ok semarie
Diffstat (limited to 'sys/arch/sparc64/dev/msi.c')
-rw-r--r--sys/arch/sparc64/dev/msi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/msi.c b/sys/arch/sparc64/dev/msi.c
index 8b12f1b4db0..3bbab713808 100644
--- a/sys/arch/sparc64/dev/msi.c
+++ b/sys/arch/sparc64/dev/msi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msi.c,v 1.3 2014/11/24 13:16:27 kettenis Exp $ */
+/* $OpenBSD: msi.c,v 1.4 2015/09/08 10:24:25 deraadt Exp $ */
/*
* Copyright (c) 2011 Mark Kettenis <kettenis@openbsd.org>
*
@@ -82,5 +82,5 @@ msi_eq_free(bus_dma_tag_t t, struct msi_eq *meq)
bus_dmamem_unmap(t, meq->meq_va, size);
bus_dmamem_free(t, &meq->meq_seg, 1);
bus_dmamap_destroy(t, meq->meq_map);
- free(meq, M_DEVBUF, 0);
+ free(meq, M_DEVBUF, sizeof *meq);
}