o Remove premature use of nmp->nm_cred, it hasn't been initialized yet.
This commit is contained in:
parent
f67efa37d6
commit
0e97c01d6d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user