Signed-off-by: Markus Armbruster <arm...@redhat.com> --- hw/scsi-disk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index a220426..aac63b6 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -676,7 +676,7 @@ static int mode_sense_page(SCSIRequest *req, int page, uint8_t *p, p[5] = 0xff; /* CD DA, DA accurate, RW supported, RW corrected, C2 errors, ISRC, UPC, Bar code */ - p[6] = 0x2d | (bdrv_is_locked(s->bs)? 2 : 0); + p[6] = 0x2d | (s->tray_locked ? 2 : 0); /* Locking supported, jumper present, eject, tray */ p[7] = 0; /* no volume & mute control, no changer */ -- 1.7.2.3