From f69866ea32f4e1f54bc14e3b4fa3d7e79754a205 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Thu, 13 Jan 2011 18:37:12 +0300 Subject: [PATCH] pxa2xx: fix vmstate_pxa2xx_i2c vmstate_pxa2xx_i2c incorrectly recursed to itself instead of going to store slave device. Fix that stop stop qemu from segfaulting during savevm for pxa2xx-based devices. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Aurelien Jarno --- hw/pxa2xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index ab524a779..6e72a5c75 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -1476,7 +1476,7 @@ static const VMStateDescription vmstate_pxa2xx_i2c = { VMSTATE_UINT8(ibmr, PXA2xxI2CState), VMSTATE_UINT8(data, PXA2xxI2CState), VMSTATE_STRUCT_POINTER(slave, PXA2xxI2CState, - vmstate_pxa2xx_i2c, PXA2xxI2CSlaveState *), + vmstate_pxa2xx_i2c_slave, PXA2xxI2CSlaveState *), VMSTATE_END_OF_LIST() } }; -- 2.39.5