check_section_footers: Check the correct section_id
commit59f39a47411ab6007a592555dc639aa9753f8d23
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 2 Jul 2015 08:22:03 +0000 (2 09:22 +0100)
committerJuan Quintela <quintela@redhat.com>
Tue, 7 Jul 2015 12:54:55 +0000 (7 14:54 +0200)
treee74da3611908ba77baaf85ca71114c17d2bb1c07
parent7cf1fe6d68eb2ad3b77e2a89f097354db5d627e2
check_section_footers: Check the correct section_id

The section footers check was incorrectly checking the section_id
in the SaveStateEntry not the LoadStateEntry.  These can validly be different
if the two QEMU instances have instantiated their devices in a
different order.  The test only cares that we're finishing the same
section we started, and hence it's the LoadStateEntry that we care about.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/savevm.c