x86/shadow: correct an inverted conditional in dirty VRAM tracking
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2020 13:19:40 +0000 (15:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2020 13:19:40 +0000 (15:19 +0200)
commita3a392ef21ee562cead19d6fe34ac260aa9c0788
treec7304bc3c5d7eb70e3b9ae4bb2ecf0bbafdd9c64
parente96cdba338e9f14e745a2725f181f5deec848b55
x86/shadow: correct an inverted conditional in dirty VRAM tracking

This originally was "mfn_x(mfn) == INVALID_MFN". Make it like this
again, taking the opportunity to also drop the unnecessary nearby
braces.

This is XSA-319.

Fixes: 246a5a3377c2 ("xen: Use a typesafe to define INVALID_MFN")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 23a216f99d40fbfbc2318ade89d8213eea6ba1f8
master date: 2020-07-07 14:36:24 +0200
xen/arch/x86/mm/shadow/common.c