In setaudit_addr(), drop the process lock in error cases.

Submitted by:	Peter Holm <peter@holm.cc> (BugMaster)
This commit is contained in:
Robert Watson 2007-06-15 15:20:56 +00:00
parent e3b0ab34a1
commit f640bf4767
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170777

View file

@ -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);
}