summaryrefslogtreecommitdiffstats
path: root/sys/fs/unionfs/union_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/unionfs/union_vfsops.c')
-rw-r--r--sys/fs/unionfs/union_vfsops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c
index 7f616cb..53c5ae6 100644
--- a/sys/fs/unionfs/union_vfsops.c
+++ b/sys/fs/unionfs/union_vfsops.c
@@ -223,8 +223,7 @@ union_mount(mp, path, data, ndp, td)
goto bad;
}
- um->um_cred = td->td_proc->p_ucred;
- crhold(um->um_cred);
+ um->um_cred = crhold(td->td_proc->p_ucred);
um->um_cmode = UN_DIRMODE &~ td->td_proc->p_fd->fd_cmask;
/*
OpenPOWER on IntegriCloud