We should lock around register_elf_image() as we modify the image hash in there.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24010 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1668,7 +1668,9 @@ load_kernel_add_on(const char *path)
|
|||||||
load_elf_symbol_table(fd, image);
|
load_elf_symbol_table(fd, image);
|
||||||
|
|
||||||
free(programHeaders);
|
free(programHeaders);
|
||||||
|
mutex_lock(&sImageMutex);
|
||||||
register_elf_image(image);
|
register_elf_image(image);
|
||||||
|
mutex_unlock(&sImageMutex);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
_kern_close(fd);
|
_kern_close(fd);
|
||||||
|
|||||||
Reference in New Issue
Block a user