summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 9fe4d40a1633..addfbefe46e9 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -462,8 +462,7 @@ again:
auio.uio_resid = buflen;
auio.uio_offset = off - (off_t)blockoff;
- error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, (int *) NULL,
- (u_int **) NULL);
+ error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, NULL, NULL);
if (error) {
goto out;
}
@@ -530,7 +529,7 @@ again:
eof:
*retval = nbytes - resid;
out:
- VOP_UNLOCK(vp, p);
+ VOP_UNLOCK(vp, 0, p);
free(buf, M_TEMP);
return error;
}