artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
885f7f0
)
Add size to free(9) call
author
kn
<kn@openbsd.org>
Wed, 20 Jul 2022 21:03:10 +0000
(21:03 +0000)
committer
kn
<kn@openbsd.org>
Wed, 20 Jul 2022 21:03:10 +0000
(21:03 +0000)
Without any later realloactions, size is taken from vnet_dring_alloc().
OK kettenis
sys/arch/sparc64/dev/vnet.c
patch
|
blob
|
history
diff --git
a/sys/arch/sparc64/dev/vnet.c
b/sys/arch/sparc64/dev/vnet.c
index
120f9cd
..
694864f
100644
(file)
--- a/
sys/arch/sparc64/dev/vnet.c
+++ b/
sys/arch/sparc64/dev/vnet.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vnet.c,v 1.6
4 2021/10/24 17:05:04 mpi Exp $
*/
+/* $OpenBSD: vnet.c,v 1.6
5 2022/07/20 21:03:10 kn Exp $
*/
/*
* Copyright (c) 2009, 2015 Mark Kettenis
*
@@
-1535,5
+1535,5
@@
vnet_dring_free(bus_dma_tag_t t, struct vnet_dring *vd)
bus_dmamem_unmap(t, (caddr_t)vd->vd_desc, size);
bus_dmamem_free(t, &vd->vd_seg, 1);
bus_dmamap_destroy(t, vd->vd_map);
- free(vd, M_DEVBUF,
0
);
+ free(vd, M_DEVBUF,
sizeof(*vd)
);
}