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 03441c3a4a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
			
			
This commit is contained in:
		
							parent
							
								
									9634e45e0b
								
							
						
					
					
						commit
						86d6fe4cb0
					
				|  | @ -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; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Kevin Wolf
						Kevin Wolf