Revision 42e766a2

b/hw/scsi-bus.c
102 102

  
103 103
int scsi_bus_legacy_handle_cmdline(SCSIBus *bus)
104 104
{
105
    Location loc;
105 106
    DriveInfo *dinfo;
106 107
    int res = 0, unit;
107 108

  
109
    loc_push_none(&loc);
108 110
    for (unit = 0; unit < MAX_SCSI_DEVS; unit++) {
109 111
        dinfo = drive_get(IF_SCSI, bus->busnr, unit);
110 112
        if (dinfo == NULL) {
111 113
            continue;
112 114
        }
115
        qemu_opts_loc_restore(dinfo->opts);
113 116
        if (!scsi_bus_legacy_add_drive(bus, dinfo->bdrv, unit)) {
114 117
            res = -1;
115 118
            break;
116 119
        }
117 120
    }
121
    loc_pop(&loc);
118 122
    return res;
119 123
}
120 124

  

Also available in: Unified diff