aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/md
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-10-11 23:38:17 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-10-11 23:38:17 +0000
commitbd78cece5df2063d2e852bd6c895e05385eea931 (patch)
treed3ca87a8ac917d5003235cc737cd5f76591f7c1b /sys/dev/md
parent698166ca554d6cba78cd1728268fa03091697973 (diff)
Notes
Diffstat (limited to 'sys/dev/md')
-rw-r--r--sys/dev/md/md.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 00317f1fd8ba..0a69769bdc7f 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -612,8 +612,7 @@ mdsetcred(struct md_s *sc, struct ucred *cred)
if (sc->cred)
crfree(sc->cred);
- crhold(cred);
- sc->cred = cred;
+ sc->cred = crhold(cred);
/*
* Horrible kludge to establish credentials for NFS XXX.