Skip to content
Commit 13e0f9fe authored by Olaf Hering's avatar Olaf Hering Committed by Zbigniew Jędrzejewski-Szmek
Browse files

Fix parsing of features in detect_vm_xen_dom0 (#7890)

Use sscanf instead of the built-in safe_atolu because the scanned string
lacks the leading "0x", it is generated with snprintf(b, "%08x", val).
As a result strtoull handles it as octal, and parsing fails.

The initial submission already used sscanf, then parsing was replaced by
safe_atolu without retesting the updated PR.

Fixes 575e6588 ("virt: use XENFEAT_dom0 to detect the hardware domain
(#6442, #6662) (#7581)")
parent 4579e8ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment