From cac782d496c0160aba9ae8df53a3504599a4c721 Mon Sep 17 00:00:00 2001 From: pbrook Date: Fri, 26 May 2006 18:08:11 +0000 Subject: [PATCH] Small read fix. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1944 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/scsi-disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab