diff options
author | pjd <pjd@FreeBSD.org> | 2005-10-02 01:03:03 +0800 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-10-02 01:03:03 +0800 |
commit | ac88285ceced8f47027327ed6c5ad2bd4815792d (patch) | |
tree | 28bf9bb70d09ace21b41ca01d36aa5fa4132fdf4 /emulators/qemu | |
parent | e8f354c568f3d88d2ffdc59dfd5f844d4981ae3b (diff) | |
download | freebsd-ports-graphics-ac88285ceced8f47027327ed6c5ad2bd4815792d.tar.gz freebsd-ports-graphics-ac88285ceced8f47027327ed6c5ad2bd4815792d.tar.zst freebsd-ports-graphics-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')
-rw-r--r-- | emulators/qemu/Makefile | 1 | ||||
-rw-r--r-- | emulators/qemu/files/kqemu-freebsd-patch | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile index 22e8f015bfd..47f0237bb03 100644 --- a/emulators/qemu/Makefile +++ b/emulators/qemu/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/files/kqemu-freebsd-patch b/emulators/qemu/files/kqemu-freebsd-patch index f708608c753..85fe0db0eb0 100644 --- a/emulators/qemu/files/kqemu-freebsd-patch +++ b/emulators/qemu/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; +} |