diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-05-24 16:14:41 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-05-24 16:14:41 +0000 |
commit | f5eca4c95705929d25f9548a80b5041730c2186f (patch) | |
tree | b9f3eef56bef3f255bf956afdccd66fca35702b1 /sys/compat/linux/linux_emul.c | |
parent | 8628fb1e0f34fc0ba285bde3d8bb9b2ee08f340e (diff) | |
download | FreeBSD-src-f5eca4c95705929d25f9548a80b5041730c2186f.zip FreeBSD-src-f5eca4c95705929d25f9548a80b5041730c2186f.tar.gz |
Where possible we will use M_LINUX malloc(9) type.
Move M_FUTEX defines to the linux_common.ko.
Differential Revision: https://reviews.freebsd.org/D1077
Reviewed by: emaste
Diffstat (limited to 'sys/compat/linux/linux_emul.c')
-rw-r--r-- | sys/compat/linux/linux_emul.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_emul.c b/sys/compat/linux/linux_emul.c index b9f2373..20eb8d1 100644 --- a/sys/compat/linux/linux_emul.c +++ b/sys/compat/linux/linux_emul.c @@ -98,7 +98,7 @@ linux_proc_init(struct thread *td, struct thread *newtd, int flags) em->em_tid = newtd->td_proc->p_pid; - pem = malloc(sizeof(*pem), M_TEMP, M_WAITOK | M_ZERO); + pem = malloc(sizeof(*pem), M_LINUX, M_WAITOK | M_ZERO); sx_init(&pem->pem_sx, "lpemlk"); newtd->td_proc->p_emuldata = pem; } @@ -134,7 +134,7 @@ linux_proc_exit(void *arg __unused, struct proc *p) p->p_emuldata = NULL; sx_destroy(&pem->pem_sx); - free(pem, M_TEMP); + free(pem, M_LINUX); } int @@ -181,7 +181,7 @@ linux_common_execve(struct thread *td, struct image_args *eargs) PROC_UNLOCK(p); free(em, M_TEMP); - free(pem, M_TEMP); + free(pem, M_LINUX); } return (0); } |