diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-10-09 16:37:51 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-10-09 16:37:51 +0000 |
| commit | 9935282d504053e04018cc9710654caadf52c3a1 (patch) | |
| tree | c3d39f8fe2ceefccf378375c73eaad3121f8c127 | |
| parent | 3ff9006c7181373ebccd4871982952584d5c9f52 (diff) | |
Notes
| -rw-r--r-- | sys/dev/md/md.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 9666ef393eef..00317f1fd8ba 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -612,7 +612,8 @@ mdsetcred(struct md_s *sc, struct ucred *cred) if (sc->cred) crfree(sc->cred); - sc->cred = crdup(cred); + crhold(cred); + sc->cred = cred; /* * Horrible kludge to establish credentials for NFS XXX. |
