aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi-disk.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-26 18:08:11 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-26 18:08:11 +0000
commitcac782d496c0160aba9ae8df53a3504599a4c721 (patch)
tree6f8a35104d299a3b566885a03ff34a193603070c /hw/scsi-disk.c
parent4be9a500e7db7a16807d7bbeaa9e7f87ab4af5f7 (diff)
Small read fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1944 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/scsi-disk.c')
-rw-r--r--hw/scsi-disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index d6c7aa6f66..9285c18cea 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -91,7 +91,7 @@ int scsi_read_data(SCSIDevice *s, uint8_t *data, uint32_t len)
}
if (len && s->sector_count) {
- bdrv_read(s->bdrv, s->sector, s->buf, 512);
+ bdrv_read(s->bdrv, s->sector, s->buf, 1);
s->sector++;
s->sector_count--;
s->buf_pos = 0;