rjones / rpms / qemu

Forked from rpms/qemu 5 months ago
Clone
5e0a924
From: Kevin Wolf <kwolf@redhat.com>
5e0a924
Date: Sun, 26 Jul 2015 23:42:53 -0400
5e0a924
Subject: [PATCH] ide/atapi: Fix START STOP UNIT command completion
5e0a924
5e0a924
The command must be completed on all code paths. START STOP UNIT with
5e0a924
pwrcnd set should succeed without doing anything.
5e0a924
5e0a924
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
5e0a924
Reviewed-by: John Snow <jsnow@redhat.com>
5e0a924
(cherry picked from commit 03441c3a4a42beb25460dd11592539030337d0f8)
5e0a924
---
5e0a924
 hw/ide/atapi.c | 1 +
5e0a924
 1 file changed, 1 insertion(+)
5e0a924
5e0a924
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
5e0a924
index f7d2009..be000545 100644
5e0a924
--- a/hw/ide/atapi.c
5e0a924
+++ b/hw/ide/atapi.c
5e0a924
@@ -879,6 +879,7 @@ static void cmd_start_stop_unit(IDEState *s, uint8_t* buf)
5e0a924
 
5e0a924
     if (pwrcnd) {
5e0a924
         /* eject/load only happens for power condition == 0 */
5e0a924
+        ide_atapi_cmd_ok(s);
5e0a924
         return;
5e0a924
     }
5e0a924