ide/atapi: Fix START STOP UNIT command completion
authorKevin Wolf <kwolf@redhat.com>
Mon, 27 Jul 2015 03:42:53 +0000 (23:42 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Jul 2015 03:42:53 +0000 (23:42 -0400)
The command must be completed on all code paths. START STOP UNIT with
pwrcnd set should succeed without doing anything.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
hw/ide/atapi.c

index 950e311d313969b85b21b948e0de739245db4c58..79dd16710705d72f7d0c7f1b0d5c865a9c3aba35 100644 (file)
@@ -983,6 +983,7 @@ static void cmd_start_stop_unit(IDEState *s, uint8_t* buf)
 
     if (pwrcnd) {
         /* eject/load only happens for power condition == 0 */
+        ide_atapi_cmd_ok(s);
         return;
     }