acpi/ipmi: Initialize the fwinfo before fetching it
The initialization was missed before, resulting in some bad data in the smbus case. Signed-off-by: Corey Minyard <cminyard@mvista.com> Cc: qemu-stable@nongnu.org Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
		
							parent
							
								
									f53b9f3625
								
							
						
					
					
						commit
						698ae42b91
					
				@ -99,6 +99,7 @@ void build_acpi_ipmi_devices(Aml *scope, BusState *bus)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        ii = IPMI_INTERFACE(obj);
 | 
					        ii = IPMI_INTERFACE(obj);
 | 
				
			||||||
        iic = IPMI_INTERFACE_GET_CLASS(obj);
 | 
					        iic = IPMI_INTERFACE_GET_CLASS(obj);
 | 
				
			||||||
 | 
					        memset(&info, 0, sizeof(info));
 | 
				
			||||||
        iic->get_fwinfo(ii, &info);
 | 
					        iic->get_fwinfo(ii, &info);
 | 
				
			||||||
        aml_append(scope, aml_ipmi_device(&info));
 | 
					        aml_append(scope, aml_ipmi_device(&info));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user