diff options
author | Kevin Wolf <kwolf@redhat.com> | 2015-07-26 23:42:53 -0400 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2015-07-29 22:19:39 -0500 |
commit | 86d6fe4cb0bce6604ed00b203dd964bead98d228 (patch) | |
tree | 225021d1d2a7eaf459b4af69ea0683f42c21e95c | |
parent | 9634e45e0b2bd4906778efdfb4b38b6fa042ebec (diff) | |
download | qemu-86d6fe4cb0bce6604ed00b203dd964bead98d228.tar.gz |
ide/atapi: Fix START STOP UNIT command completion
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>
(cherry picked from commit 03441c3a4a42beb25460dd11592539030337d0f8)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r-- | hw/ide/atapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index 950e311d31..79dd167107 100644 --- a/hw/ide/atapi.c +++ b/hw/ide/atapi.c @@ -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; } |