diff options
Diffstat (limited to 'hw/fdc.h')
-rw-r--r-- | hw/fdc.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -11,7 +11,10 @@ static inline void fdctrl_init_isa(DriveInfo **fds) { ISADevice *dev; - dev = isa_create("isa-fdc"); + dev = isa_try_create("isa-fdc"); + if (!dev) { + return; + } if (fds[0]) { qdev_prop_set_drive_nofail(&dev->qdev, "driveA", fds[0]->bdrv); } |