]> xenbits.xensource.com Git - qemu-upstream-4.5-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:39:26 +0000 (16:39 +0000)
commit272a614387ac25f2727a7f5c292111975e33b2fb
treef34e4fe9924c067b7dba478d6681a9fe24a87104
parent8c38fafb45e1db03253c465088c7ff4e0924f356
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