]> xenbits.xensource.com Git - xen.git/commit
x86/mmcfg: Fix initalisation of variables in pci_mmcfg_nvidia_mcp55()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 3 Aug 2016 09:48:42 +0000 (10:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 3 Aug 2016 17:46:59 +0000 (18:46 +0100)
commitab8fc3937eeb9332b83d7e14d81e37f0b0ef1841
tree0f5bc466c2c371ecf8d7365e85491e7b9183378f
parent2615485905a34da095a2453b3991c5adba7f33da
x86/mmcfg: Fix initalisation of variables in pci_mmcfg_nvidia_mcp55()

Shifting into the sign bit of an integer is undefined behaviour.

Only the first integer is actually undefined, but switch all the shifts
for consistency.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <JBeulich@suse.com>
xen/arch/x86/x86_64/mmconfig-shared.c