| Submitter | Kevin Wolf |
|---|---|
| Date | July 17, 2012, 4 p.m. |
| Message ID | <1342540838-9027-28-git-send-email-kwolf@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/171485/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c index f191dd3..84097fd 100644 --- a/hw/ide/qdev.c +++ b/hw/ide/qdev.c @@ -117,7 +117,7 @@ int ide_get_geometry(BusState *bus, int unit, { IDEState *s = &DO_UPCAST(IDEBus, qbus, bus)->ifs[unit]; - if (!s->bs) { + if (s->drive_kind != IDE_HD || !s->bs) { return -1; }