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:
parent
43f774f296
commit
d8f3dc7871
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user