aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/qemu-devel
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-10-02 01:03:03 +0800
committerpjd <pjd@FreeBSD.org>2005-10-02 01:03:03 +0800
commitac88285ceced8f47027327ed6c5ad2bd4815792d (patch)
tree28bf9bb70d09ace21b41ca01d36aa5fa4132fdf4 /emulators/qemu-devel
parente8f354c568f3d88d2ffdc59dfd5f844d4981ae3b (diff)
downloadfreebsd-ports-gnome-ac88285ceced8f47027327ed6c5ad2bd4815792d.tar.gz
freebsd-ports-gnome-ac88285ceced8f47027327ed6c5ad2bd4815792d.tar.zst
freebsd-ports-gnome-ac88285ceced8f47027327ed6c5ad2bd4815792d.zip
Fix a panic on qemu process close (when kqemu is used).
Structure 'ks' was used after it has been freed. Reviewed by: Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
Diffstat (limited to 'emulators/qemu-devel')
-rw-r--r--emulators/qemu-devel/Makefile1
-rw-r--r--emulators/qemu-devel/files/kqemu-freebsd-patch2
2 files changed, 2 insertions, 1 deletions
diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile
index 22e8f015bfd5..47f0237bb03c 100644
--- a/emulators/qemu-devel/Makefile
+++ b/emulators/qemu-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= qemu
PORTVERSION= 0.7.2s.20050909
+POTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://www.qemu.org/ \
http://people.fruitsalad.org/nox/qemu/ \
diff --git a/emulators/qemu-devel/files/kqemu-freebsd-patch b/emulators/qemu-devel/files/kqemu-freebsd-patch
index f708608c753a..85fe0db0eb09 100644
--- a/emulators/qemu-devel/files/kqemu-freebsd-patch
+++ b/emulators/qemu-devel/files/kqemu-freebsd-patch
@@ -337,12 +337,12 @@ Index: qemu/kqemu/kqemu-freebsd.c
+ ks->state = NULL;
+ }
+
-+ free(ks, M_KQEMU);
+#if __FreeBSD_version >= 500000
+ dev->si_drv1 = NULL;
+ TAILQ_REMOVE(&kqemuhead, ks, kqemu_ent);
+ destroy_dev(dev);
+#endif
++ free(ks, M_KQEMU);
+ --kqemu_ref_count;
+}