aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/atapi.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-07-26 23:42:53 -0400
committerJohn Snow <jsnow@redhat.com>2015-07-26 23:42:53 -0400
commit03441c3a4a42beb25460dd11592539030337d0f8 (patch)
tree5c1d4295d5644656ede50367180519b930431cba /hw/ide/atapi.c
parentd2ff85854512574e7209f295e87b0835d5b032c6 (diff)
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>
Diffstat (limited to 'hw/ide/atapi.c')
-rw-r--r--hw/ide/atapi.c1
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;
}