]> xenbits.xensource.com Git - qemu-upstream-4.3-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:53:21 +0000 (16:53 +0000)
commit34cc4117a7bcb212b527381a635a1acfd00c6d77
tree1ec94c00c8cf5f4270f6bc30bd7b98ae3b7e4235
parent25c99f89476080f4e3ba221437916b5a38208e03
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-commmit-id: ab44b867744b2246302da73a8ef0ed26876f2981

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