Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 elf_args needs to be freed with kmem_fre...
details: https://anonhg.NetBSD.org/src/rev/c7223faaec95
branches: trunk
changeset: 773476:c7223faaec95
user: christos <christos%NetBSD.org@localhost>
date: Fri Feb 03 03:54:35 2012 +0000
description:
elf_args needs to be freed with kmem_free() since it is now allocated with
kmem_alloc(). Should fix running 32 bit elf binaries.
diffstat:
sys/compat/netbsd32/netbsd32_exec_elf32.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 48901e1bc1a0 -r c7223faaec95 sys/compat/netbsd32/netbsd32_exec_elf32.c
--- a/sys/compat/netbsd32/netbsd32_exec_elf32.c Fri Feb 03 03:35:30 2012 +0000
+++ b/sys/compat/netbsd32/netbsd32_exec_elf32.c Fri Feb 03 03:54:35 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_exec_elf32.c,v 1.33 2011/03/07 05:09:12 joerg Exp $ */
+/* $NetBSD: netbsd32_exec_elf32.c,v 1.34 2012/02/03 03:54:35 christos Exp $ */
/* from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
/*
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_elf32.c,v 1.33 2011/03/07 05:09:12 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_elf32.c,v 1.34 2012/02/03 03:54:35 christos Exp $");
#define ELFSIZE 32
@@ -196,7 +196,7 @@
a->a_v = kauth_cred_getgid(l->l_cred);
a++;
- free((char *)ap, M_TEMP);
+ kmem_free(ap, sizeof(*ap));
pack->ep_emul_arg = NULL;
}
Home |
Main Index |
Thread Index |
Old Index