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:
parent
306fe53248
commit
d4d25a55bd
@ -1668,7 +1668,9 @@ load_kernel_add_on(const char *path)
|
||||
load_elf_symbol_table(fd, image);
|
||||
|
||||
free(programHeaders);
|
||||
mutex_lock(&sImageMutex);
|
||||
register_elf_image(image);
|
||||
mutex_unlock(&sImageMutex);
|
||||
|
||||
done:
|
||||
_kern_close(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user