diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-10-11 23:38:17 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-10-11 23:38:17 +0000 |
| commit | bd78cece5df2063d2e852bd6c895e05385eea931 (patch) | |
| tree | d3ca87a8ac917d5003235cc737cd5f76591f7c1b /sys/ufs | |
| parent | 698166ca554d6cba78cd1728268fa03091697973 (diff) | |
Notes
Diffstat (limited to 'sys/ufs')
| -rw-r--r-- | sys/ufs/ufs/ufs_extattr.c | 3 | ||||
| -rw-r--r-- | sys/ufs/ufs/ufs_quota.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/ufs/ufs/ufs_extattr.c b/sys/ufs/ufs/ufs_extattr.c index 60dc574fdba89..a1d523fc45419 100644 --- a/sys/ufs/ufs/ufs_extattr.c +++ b/sys/ufs/ufs/ufs_extattr.c @@ -210,8 +210,7 @@ ufs_extattr_start(struct mount *mp, struct thread *td) ump->um_extattr.uepm_flags |= UFS_EXTATTR_UEPM_STARTED; - crhold(td->td_proc->p_ucred); - ump->um_extattr.uepm_ucred = td->td_proc->p_ucred; + ump->um_extattr.uepm_ucred = crhold(td->td_proc->p_ucred); unlock: ufs_extattr_uepm_unlock(ump, td); diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c index 4c10d88e0a224..f1a5835cebe9d 100644 --- a/sys/ufs/ufs/ufs_quota.c +++ b/sys/ufs/ufs/ufs_quota.c @@ -422,8 +422,7 @@ quotaon(td, mp, type, fname) * Save the credential of the process that turned on quotas. * Set up the time limits for this quota. */ - crhold(td->td_proc->p_ucred); - ump->um_cred[type] = td->td_proc->p_ucred; + ump->um_cred[type] = crhold(td->td_proc->p_ucred); ump->um_btime[type] = MAX_DQ_TIME; ump->um_itime[type] = MAX_IQ_TIME; if (dqget(NULLVP, 0, ump, type, &dq) == 0) { |
