fix remove_process_memory_range(): remove INIT_LIST_HEAD for on-list item

This commit is contained in:
Balazs Gerofi bgerofi@riken.jp
2013-06-24 13:29:33 +09:00
parent f9cb60ef33
commit be71505e87

View File

@@ -230,7 +230,6 @@ int remove_process_memory_range(struct process *process, unsigned long start, un
kprintf("remove_process_memory_range:kmalloc failed\n");
return -ENOMEM;
}
INIT_LIST_HEAD(&range->list);
newrange->start = end;
newrange->end = range->end;
newrange->phys = range->phys + (end - range->start);