]> git.ipfire.org Git - thirdparty/qemu.git/commit
ide: fix cmd_write_pio when nsectors > 1
authorJohn Snow <jsnow@redhat.com>
Fri, 20 Mar 2015 00:24:13 +0000 (20:24 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 23 Mar 2015 16:24:16 +0000 (12:24 -0400)
commit6aff22c013ab6f5f711665e7031fd555086d4464
treebd8e518dd439d3f586ead61b8b2b9eedcbabb56e
parent3c6c9fe034c0c07b77f272e4a53d7735220a16a4
ide: fix cmd_write_pio when nsectors > 1

We need to adjust the sector being written to
prior to calling ide_transfer_start, otherwise
we'll write to the same sector again.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Andreas Färber <afaerber@suse.de>
Message-id: 1426811056-2202-2-git-send-email-jsnow@redhat.com
hw/ide/core.c