From: Kevin Wolf Date: Mon, 27 Jul 2015 03:42:53 +0000 (-0400) Subject: ide/atapi: Fix START STOP UNIT command completion X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=03441c3a4a42beb25460dd11592539030337d0f8;p=qmiga%2Fqemu.git 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 Reviewed-by: John Snow --- 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; }