]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/xen: Remove undefined behavior in setup_features()
authorJulien Grall <jgrall@amazon.com>
Fri, 17 Jun 2022 10:30:37 +0000 (11:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Jul 2022 14:18:08 +0000 (16:18 +0200)
commit37d24ef2254548a14a0d76eb4eaa34197dfa4587
treeff0c5ec747ba1dd129478b19cbd4cea0fa89240c
parent160eb5fc4c0a4c501530d603d735a05ad3076ecb
x86/xen: Remove undefined behavior in setup_features()

[ Upstream commit ecb6237fa397b7b810d798ad19322eca466dbab1 ]

1 << 31 is undefined. So switch to 1U << 31.

Fixes: 5ead97c84fa7 ("xen: Core Xen implementation")
Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20220617103037.57828-1-julien@xen.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/xen/features.c