]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/sd.c: fix migration of dynamically allocated buffer "buf"
authorIgor Mitsyanko <i.mitsyanko@gmail.com>
Fri, 5 Apr 2013 15:17:59 +0000 (16:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 5 Apr 2013 15:17:59 +0000 (16:17 +0100)
commit5f00679ee98b1643ff652bbf982dffe1b432596e
tree85b5ff90cfa9e3a75e7264726af0980c8a3fdce8
parent8070568b9aa8d93b3729ab7e9ca0ef8a6351d2bd
hw/sd.c: fix migration of dynamically allocated buffer "buf"

VMSTATE_BUFFER_UNSAFE should be used for buffers inlined in device state, not
for buffers allocated dynamically. Change to VMSTATE_BUFFER_POINTER_UNSAFE macro,
which will do migration right.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Michael Walle <michael@walle.cc>
Message-id: 1362923278-4080-3-git-send-email-i.mitsyanko@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd.c