Fix use of pointer after being set NULL.

Using a pointer after setting it NULL is probably not a good plan.
Spotted by inspection during changes for Flexible File Layout Ioerr handling.
This code path obviously isn't normally executed.

MFC after:	1 week
This commit is contained in:
rmacklem 2018-04-20 11:38:29 +00:00
parent c6192ec749
commit 894b3406cb

View File

@ -1391,8 +1391,8 @@ nfssvc_nfscl(struct thread *td, struct nfssvc_args *uap)
NFSMNTP_CANCELRPCS);
mtx_unlock(&nmp->nm_mtx);
} else {
nmp = NULL;
mtx_unlock(&nmp->nm_mtx);
nmp = NULL;
}
break;
}