forked from alwin.berger/FRET-qemu

When copying L2 tables (this happens only with internal snapshots), the order wasn't completely safe, so that after a crash you could end up with a L2 table that has too low refcount, possibly leading to corruption in the long run. This patch puts the operations in the right order: First allocate the new L2 table and replace the reference, and only then decrease the refcount of the old table. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Read the documentation in qemu-doc.html. Fabrice Bellard.
Description
Languages
C
82.9%
C++
6.4%
Python
3.2%
Dylan
2.9%
Shell
1.6%
Other
2.8%