aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_getcwd.c
diff options
context:
space:
mode:
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 1dfe6b400ec9..9b810a38ca38 100644
--- a/sys/compat/linux/linux_getcwd.c
+++ b/sys/compat/linux/linux_getcwd.c
@@ -185,7 +185,7 @@ linux_getcwd_scandir(lvpp, uvpp, bpp, bufp, td)
/* If we don't care about the pathname, we're done */
if (bufp == NULL) {
- vrele(lvp);
+ vput(lvp);
*lvpp = NULL;
return 0;
}
@@ -281,7 +281,7 @@ unionread:
error = ENOENT;
out:
- vrele(lvp);
+ vput(lvp);
*lvpp = NULL;
free(dirbuf, M_TEMP);
return error;