If falloc_caps() failed, cleanup needs to be performed. This is a bug

in r289026.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2015-10-16 14:55:39 +00:00
parent 43f774f296
commit d8f3dc7871
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289423

View File

@ -848,7 +848,7 @@ fork1(struct thread *td, int flags, int pages, struct proc **procp,
if (flags & RFPROCDESC) {
error = falloc_caps(td, &fp_procdesc, procdescp, 0, fcaps);
if (error != 0)
return (error);
goto fail2;
}
mem_charged = 0;