IDE: Do not flush empty CDROM drives
commit4da97120d51a4383aa96d741a2b837f8c4bbcd0b
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 9 Aug 2017 16:02:11 +0000 (9 17:02 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 10 Aug 2017 13:33:43 +0000 (10 14:33 +0100)
tree1338896c20d3bee4ee1fe9326b3b32ee6f893d54
parentb38df311c174c98ef8cce7dec9f46603b083018e
IDE: Do not flush empty CDROM drives

The block backend changed in a way that flushing empty CDROM drives now
crashes.  Amend IDE to avoid doing so until the root problem can be
addressed for 2.11.

Original patch by John Snow <jsnow@redhat.com>.

Reported-by: Kieron Shorrock <kshorrock@paloaltonetworks.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20170809160212.29976-2-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/ide/core.c