mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 01:52:39 +03:00
[process] Make it safe to call process_add() multiple times
This commit is contained in:
@@ -47,6 +47,7 @@ static inline __attribute__ (( always_inline )) void
|
||||
process_init_stopped ( struct process *process,
|
||||
void ( * step ) ( struct process *process ),
|
||||
struct refcnt *refcnt ) {
|
||||
INIT_LIST_HEAD ( &process->list );
|
||||
process->step = step;
|
||||
process->refcnt = refcnt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user