OSDN Git Service

migration: Check that postcopy fd's are not NULL
authorJuan Quintela <quintela@redhat.com>
Wed, 3 Nov 2021 19:24:27 +0000 (20:24 +0100)
committerJuan Quintela <quintela@redhat.com>
Sat, 6 Nov 2021 11:35:29 +0000 (12:35 +0100)
commit565599807fee415a2e071d2c4f532f4e3bb18dcb
tree30da3291f59c02c20c3eaa1cf708a7ca42bfc326
parentc39deb218178d1fb814dd2138ceff4b541a03d85
migration: Check that postcopy fd's are not NULL

If postcopy has finished, it frees the array.
But vhost-user unregister it at cleanup time.

fixes: c4f7538
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/postcopy-ram.c