HFI1: hfi1_unmap_device_addresses() at process terminate time

This commit is contained in:
Balazs Gerofi
2017-10-16 18:15:55 +09:00
parent 002b78372d
commit 2900ce20f7
6 changed files with 158 additions and 22 deletions

View File

@ -1078,6 +1078,12 @@ void terminate(int rc, int sig)
mcs_rwlock_writer_unlock(&proc->threads_lock, &lock);
vm = proc->vm;
{
extern int hfi1_unmap_device_addresses(struct process *proc);
hfi1_unmap_device_addresses(proc);
}
free_all_process_memory_range(vm);
if (proc->saved_cmdline) {