list: change locking discipline

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-12 14:50:47 -04:00
commit 071a5651e0
Signed by: michaelsshaw
GPG key ID: 5A5E0FB20708A9E7
11 changed files with 61 additions and 15 deletions

View file

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