]> xenbits.xensource.com Git - qemu-upstream-4.4-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:48:37 +0000 (16:48 +0000)
commit2d8f5cf694d855fa06a5b06f1fd5cdcef3206dc6
tree2b1d2b2a7fe16cdf9e79295445c5d5afa7b7c2b5
parent5d25ace303e36814dc7241e6182bcc8933e5c6dc
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