common/vcpu: Fix unintended breakage from cleanup
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 17 Feb 2017 11:53:44 +0000 (11:53 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 17 Feb 2017 13:01:56 +0000 (13:01 +0000)
commitcc6d98d5454b9d289a9e80d71c215da148a09b38
tree7f3fba0efd521319c17adfdcf458969783923867
parentb8932b138578a9583645e29e636b38d9d4a43637
common/vcpu: Fix unintended breakage from cleanup

c/s 3044a2a "common/vcpu: Switch v->vcpu_info_mfn to mfn_t" was intended to be
no functional change.

Unfortunately, because vcpu_info_reset() clobbers v->vcpu_info_mfn, the change
ended up calling put_page_and_type() on MFN_INVALID.

Reintroduce the local variable, and leave a comment behind.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/domain.c