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:
Michael Lotz 2008-02-18 22:54:12 +00:00
parent 306fe53248
commit d4d25a55bd

View File

@ -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);