hw/block/fdc: Fix 'fallback' property on sysbus floppy disk controllers
commitda64789d3a16b2c5b5f1be9c75b00c2b8ae393a0
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 7 Apr 2021 13:37:42 +0000 (7 15:37 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Apr 2021 16:00:29 +0000 (9 18:00 +0200)
tree2aa0484bbef3fb0b0ed66c1a8be6afae5b4766f3
parentf940b0ac6fa67deb9d0b671cf83070f0286c67e1
hw/block/fdc: Fix 'fallback' property on sysbus floppy disk controllers

Setting the 'fallback' property corrupts the QOM instance state
(FDCtrlSysBus) because it accesses an incorrect offset (it uses
the offset of the FDCtrlISABus state).

Cc: qemu-stable@nongnu.org
Fixes: a73275dd6fc ("fdc: Add fallback option")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210407133742.1680424-1-f4bug@amsat.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/fdc.c