mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
In setaudit_addr(), drop the process lock in error cases.
Submitted by: Peter Holm <peter@holm.cc> (BugMaster)
This commit is contained in:
parent
e3b0ab34a1
commit
f640bf4767
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170777
|
@ -604,6 +604,7 @@ setaudit_addr(struct thread *td, struct setaudit_addr_args *uap)
|
|||
crfree(oldcred);
|
||||
return (0);
|
||||
fail:
|
||||
PROC_UNLOCK(td->td_proc);
|
||||
crfree(newcred);
|
||||
return (error);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue