list: change locking discipline
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
2cf76fd225
commit
071a5651e0
11 changed files with 61 additions and 15 deletions
|
|
@ -260,7 +260,9 @@ static int elf_load(const char *name, const char *file, size_t fsize)
|
|||
d->base = base;
|
||||
d->size = total;
|
||||
d->n_users = 1;
|
||||
list_lock(&pending_drivers);
|
||||
list_insert(&pending_drivers, d);
|
||||
list_unlock(&pending_drivers);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue