summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_subs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nfsclient/nfs_subs.c')
-rw-r--r--sys/nfsclient/nfs_subs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c
index 9f57ab3..03be819 100644
--- a/sys/nfsclient/nfs_subs.c
+++ b/sys/nfsclient/nfs_subs.c
@@ -843,7 +843,7 @@ nfs_getcookie(struct nfsnode *np, off_t off, int add)
dp = LIST_FIRST(&np->n_cookies);
if (!dp) {
if (add) {
- MALLOC(dp, struct nfsdmap *, sizeof (struct nfsdmap),
+ dp = malloc(sizeof (struct nfsdmap),
M_NFSDIROFF, M_WAITOK);
dp->ndm_eocookie = 0;
LIST_INSERT_HEAD(&np->n_cookies, dp, ndm_list);
@@ -858,7 +858,7 @@ nfs_getcookie(struct nfsnode *np, off_t off, int add)
goto out;
dp = LIST_NEXT(dp, ndm_list);
} else if (add) {
- MALLOC(dp2, struct nfsdmap *, sizeof (struct nfsdmap),
+ dp2 = malloc(sizeof (struct nfsdmap),
M_NFSDIROFF, M_WAITOK);
dp2->ndm_eocookie = 0;
LIST_INSERT_AFTER(dp, dp2, ndm_list);
OpenPOWER on IntegriCloud