summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_getcwd.c
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2015-05-24 16:14:41 +0000
committerdchagin <dchagin@FreeBSD.org>2015-05-24 16:14:41 +0000
commitf5eca4c95705929d25f9548a80b5041730c2186f (patch)
treeb9f3eef56bef3f255bf956afdccd66fca35702b1 /sys/compat/linux/linux_getcwd.c
parent8628fb1e0f34fc0ba285bde3d8bb9b2ee08f340e (diff)
downloadFreeBSD-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_getcwd.c')
-rw-r--r--sys/compat/linux/linux_getcwd.c4
1 files changed, 2 insertions, 2 deletions
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);
}
OpenPOWER on IntegriCloud