summaryrefslogtreecommitdiff
path: root/sys/isofs/udf/udf_vnops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/isofs/udf/udf_vnops.c')
-rw-r--r--sys/isofs/udf/udf_vnops.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/isofs/udf/udf_vnops.c b/sys/isofs/udf/udf_vnops.c
index 2a557d8385d..de369ed9b14 100644
--- a/sys/isofs/udf/udf_vnops.c
+++ b/sys/isofs/udf/udf_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vnops.c,v 1.28 2007/09/17 01:33:33 krw Exp $ */
+/* $OpenBSD: udf_vnops.c,v 1.29 2007/10/29 13:02:20 chl Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -722,8 +722,7 @@ udf_readdir(void *v)
* it left off.
*/
ncookies = uio->uio_resid / 8;
- MALLOC(cookies, u_long *, sizeof(u_long) * ncookies,
- M_TEMP, M_WAITOK);
+ cookies = malloc(sizeof(u_long) * ncookies, M_TEMP, M_WAITOK);
uiodir.ncookies = ncookies;
uiodir.cookies = cookies;
uiodir.acookies = 0;
@@ -807,7 +806,7 @@ udf_readdir(void *v)
if (ap->a_ncookies != NULL) {
if (error)
- FREE(cookies, M_TEMP);
+ free(cookies, M_TEMP);
else {
*ap->a_ncookies = uiodir.acookies;
*ap->a_cookies = cookies;