o Remove premature use of nmp->nm_cred, it hasn't been initialized yet.

This commit is contained in:
Robert Watson 2002-01-01 16:17:55 +00:00
parent f67efa37d6
commit 0e97c01d6d

View File

@ -421,7 +421,7 @@ nfs_mountroot(struct mount *mp, struct thread *td)
* talk to the server.
*/
error = socreate(nd->myif.ifra_addr.sa_family, &so, SOCK_DGRAM, 0,
nmp->nm_cred, td);
td->td_proc->p_ucred;, td);
if (error)
panic("nfs_mountroot: socreate(%04x): %d",
nd->myif.ifra_addr.sa_family, error);