fork: clone_thread: free resources when an error is detected

Change-Id: I922f3fddc35942ef2c67db6673980770731dced9
This commit is contained in:
TOIDA,Suguru
2019-08-20 13:22:34 +09:00
committed by Masamichi Takagi
parent 3e9fdfc0f1
commit bb08742467
3 changed files with 68 additions and 30 deletions

View File

@ -832,6 +832,7 @@ void hold_process_vm(struct process_vm *vm);
void release_process_vm(struct process_vm *vm);
void hold_process(struct process *);
void release_process(struct process *);
void free_all_process_memory_range(struct process_vm *vm);
void free_process_memory_ranges(struct process_vm *vm);
int populate_process_memory(struct process_vm *vm, void *start, size_t len);