From f5eca4c95705929d25f9548a80b5041730c2186f Mon Sep 17 00:00:00 2001 From: dchagin Date: Sun, 24 May 2015 16:14:41 +0000 Subject: 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 --- sys/compat/linux/linux_getcwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/compat/linux/linux_getcwd.c') diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c index ebcf970..e6be015 100644 --- a/sys/compat/linux/linux_getcwd.c +++ b/sys/compat/linux/linux_getcwd.c @@ -74,7 +74,7 @@ linux_getcwd(struct thread *td, struct linux_getcwd_args *args) if (args->bufsize < 2) return (ERANGE); - path = malloc(LINUX_PATH_MAX, M_TEMP, M_WAITOK); + path = malloc(LINUX_PATH_MAX, M_LINUX, M_WAITOK); error = kern___getcwd(td, path, UIO_SYSSPACE, args->bufsize, LINUX_PATH_MAX); @@ -85,6 +85,6 @@ linux_getcwd(struct thread *td, struct linux_getcwd_args *args) td->td_retval[0] = lenused; } - free(path, M_TEMP); + free(path, M_LINUX); return (error); } -- cgit v1.1