Revision 622b520f hw/scsi-bus.c
b/hw/scsi-bus.c | ||
---|---|---|
108 | 108 |
int res = 0, unit; |
109 | 109 |
|
110 | 110 |
loc_push_none(&loc); |
111 |
for (unit = 0; unit < MAX_SCSI_DEVS; unit++) {
|
|
111 |
for (unit = 0; unit < bus->ndev; unit++) {
|
|
112 | 112 |
dinfo = drive_get(IF_SCSI, bus->busnr, unit); |
113 | 113 |
if (dinfo == NULL) { |
114 | 114 |
continue; |
Also available in: Unified diff