]> git.proxmox.com Git - qemu.git/commit
ide/macio: fix wrong opaque with TRIM support
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 19 May 2013 11:22:11 +0000 (13:22 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 19 May 2013 23:54:14 +0000 (01:54 +0200)
commitb9b5df6f0cee6b09ef3b2e5228761dd3c2cdcad7
tree4261dfbe080e67a8428ce305bc8872845bfb229c
parent118d1e4f59c36078a0d76d090d4c16deace47233
ide/macio: fix wrong opaque with TRIM support

Commit 215e47b9 enabled TRIM by default, which revealed a bug in TRIM
support for the IDE macio emulation driver, introduced in d353fb72.

The call to dma_bdrv_io() is using a wrong opaque of type IDEState
instead of DBDMA_io. This patch fixes that.

Fixes LP#1179104

Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Tested-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/ide/macio.c