diff options
author | Kevin Wolf <kwolf@redhat.com> | 2015-07-26 23:42:53 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2015-07-26 23:42:53 -0400 |
commit | 03441c3a4a42beb25460dd11592539030337d0f8 (patch) | |
tree | 5c1d4295d5644656ede50367180519b930431cba /hw/ide | |
parent | d2ff85854512574e7209f295e87b0835d5b032c6 (diff) | |
download | qemu-03441c3a4a42beb25460dd11592539030337d0f8.tar.gz qemu-03441c3a4a42beb25460dd11592539030337d0f8.tar.bz2 qemu-03441c3a4a42beb25460dd11592539030337d0f8.zip |
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')
-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; } |