diff options
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu-char.c b/qemu-char.c index 6e2cd315a5..b42046dd85 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -350,9 +350,9 @@ static int mux_proc_byte(CharDriverState *chr, MuxDriver *d, int ch) } case 's': { - int i; - for (i = 0; i < nb_drives; i++) { - bdrv_commit(drives_table[i].bdrv); + DriveInfo *dinfo; + TAILQ_FOREACH(dinfo, &drives, next) { + bdrv_commit(dinfo->bdrv); } } break; |