Revision 0fd76ff4

b/hw/scsi-disk.c
956 956
        p += 8;
957 957
    }
958 958

  
959
    /* MMC prescribes that CD/DVD drives have no block descriptors.  */
959 960
    bdrv_get_geometry(s->qdev.conf.bs, &nb_sectors);
960
    if (!dbd && nb_sectors) {
961
    if (!dbd && s->qdev.type == TYPE_DISK && nb_sectors) {
961 962
        if (r->req.cmd.buf[0] == MODE_SENSE) {
962 963
            outbuf[3] = 8; /* Block descriptor length  */
963 964
        } else { /* MODE_SENSE_10 */

Also available in: Unified diff