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:
parent
c6192ec749
commit
894b3406cb
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user