Skip to content

Commit

Permalink
cpus-common: fix uninitialized variable use in run_on_cpu
Browse files Browse the repository at this point in the history
Reviewed-by: Alex Bennée <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Sep 27, 2016
1 parent d148d90 commit 0e55539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpus-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ struct qemu_work_item {
struct qemu_work_item *next;
run_on_cpu_func func;
void *data;
int done;
bool free;
bool free, done;
};

static void queue_work_on_cpu(CPUState *cpu, struct qemu_work_item *wi)
Expand Down Expand Up @@ -120,6 +119,7 @@ void do_run_on_cpu(CPUState *cpu, run_on_cpu_func func, void *data,

wi.func = func;
wi.data = data;
wi.done = false;
wi.free = false;

queue_work_on_cpu(cpu, &wi);
Expand Down

0 comments on commit 0e55539

Please sign in to comment.