]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
fix off-by-one error in pci_piix3_xen_ide_unplug
authorJames Harper <james@ejbdigital.com.au>
Thu, 30 Oct 2014 10:08:28 +0000 (10:08 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 31 Jul 2015 16:57:52 +0000 (16:57 +0000)
commitda2e633ec99da897f51f388217f070c53aea6674
treed413fbb0fc6a8e206e13cdfc940b746e2085e352
parentfad385b9831595b4d8d76d9079be72f2e7bddaec
fix off-by-one error in pci_piix3_xen_ide_unplug

Fix off-by-one error when unplugging disks, which would otherwise leave the last ATA disk plugged, with obvious consequences. Also rewrite loop to be more readable.

upstream-commit-id: d4f9e806c20607cafe7bb0d9eba14ccb160390a1

Signed-off-by: James Harper <james.harper@ejbdigital.com.au>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/ide/piix.c