Skip to content
Snippets Groups Projects
Commit 3cd27b58 authored by Peng Liang's avatar Peng Liang Committed by Peter Maydell
Browse files

microbit_i2c: Fix coredump when dump-vmstate


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

Fixes: 9d68bf56 ("arm: Stub out NRF51 TWI magnetometer/accelerometer detection")
Reported-by: default avatarEuler Robot <euler.robot@huawei.com>
Signed-off-by: default avatarPeng Liang <liangpeng10@huawei.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201019093401.2993833-1-liangpeng10@huawei.com
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 4301acd7
No related branches found
No related tags found
No related merge requests found
......@@ -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()
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment