qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] microbit_i2c: Fix coredump when dump-vmstate
@ 2020-10-19  9:34 Peng Liang
  2020-10-19 10:35 ` Philippe Mathieu-Daudé
  2020-10-20 14:36 ` Peter Maydell
  0 siblings, 2 replies; 9+ messages in thread
From: Peng Liang @ 2020-10-19  9:34 UTC (permalink / raw)
  To: qemu-arm, qemu-devel
  Cc: liangpeng10, peter.maydell, joel, xiexiangyou, zhang.zhanghailiang

VMStateDescription.fields should be end with VMSTATE_END_OF_LIST().
However, microbit_i2c_vmstate doesn't follow it.  Let's change it.

Fixes: 9d68bf564e ("arm: Stub out NRF51 TWI magnetometer/accelerometer detection")
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
---
 hw/i2c/microbit_i2c.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/i2c/microbit_i2c.c b/hw/i2c/microbit_i2c.c
index 802473982082..e92f9f84ea81 100644
--- a/hw/i2c/microbit_i2c.c
+++ b/hw/i2c/microbit_i2c.c
@@ -83,6 +83,7 @@ static const VMStateDescription microbit_i2c_vmstate = {
     .fields = (VMStateField[]) {
         VMSTATE_UINT32_ARRAY(regs, MicrobitI2CState, MICROBIT_I2C_NREGS),
         VMSTATE_UINT32(read_idx, MicrobitI2CState),
+        VMSTATE_END_OF_LIST()
     },
 };
 
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-10-20 14:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-19  9:34 [PATCH] microbit_i2c: Fix coredump when dump-vmstate Peng Liang
2020-10-19 10:35 ` Philippe Mathieu-Daudé
2020-10-19 14:30   ` Peng Liang
2020-10-20 11:17   ` Peng Liang
2020-10-20 11:27     ` Philippe Mathieu-Daudé
2020-10-20 12:07       ` Peng Liang
2020-10-20 11:27     ` Peter Maydell
2020-10-20 12:19       ` Peng Liang
2020-10-20 14:36 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).