]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ide/piix.c
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>
Thu, 30 Oct 2014 14:16:39 +0000 (14:16 +0000)
commitd4f9e806c20607cafe7bb0d9eba14ccb160390a1
tree095a416c3a5a986f16b1535474c8792c6b2281f3
parent37f9e258b64b3cf97c7c78df60660100c9eb5a21
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.

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