ide: Ignore double DMA transfer starts/stops
authorKevin Wolf <kwolf@redhat.com>
Fri, 26 Nov 2010 15:44:53 +0000 (16:44 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 29 Nov 2010 15:15:02 +0000 (16:15 +0100)
commita884fe437cdd5964cfb71f1127ca5389bbdd0cfe
tree7060311b7ac835d2a73b8749689284a57e006c32
parented2381d70abf855b9feac28911d451c31861f11e
ide: Ignore double DMA transfer starts/stops

You can only start a DMA transfer if it's not running yet, and you can only
cancel it if it's running.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
hw/ide/pci.c