aboutsummaryrefslogtreecommitdiff
path: root/hw/block/hd-geometry.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/block/hd-geometry.c')
-rw-r--r--hw/block/hd-geometry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/hd-geometry.c b/hw/block/hd-geometry.c
index dcbccee..24933ea 100644
--- a/hw/block/hd-geometry.c
+++ b/hw/block/hd-geometry.c
@@ -63,7 +63,7 @@ static int guess_disk_lchs(BlockBackend *blk,
blk_get_geometry(blk, &nb_sectors);
- if (blk_pread(blk, 0, buf, BDRV_SECTOR_SIZE) < 0) {
+ if (blk_pread(blk, 0, buf, BDRV_SECTOR_SIZE, 0) < 0) {
return -1;
}
/* test msdos magic */