mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
fuzz/x86emul: remove bogus check against fuzzer msr index
The "reg" variable in fuzz_read_msr stores the real MSR index, not an index within the fuzzer. The rest of that function already handles things correctly. We just need to remove the bogus check. Spotted by Coverity. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
63e1d01b8f
commit
4008d7774c
1 file changed
-3
@@ -347,9 +347,6 @@ static int fuzz_read_msr(
|
||||
{
|
||||
unsigned int idx;
|
||||
|
||||
if ( reg >= MSR_INDEX_MAX )
|
||||
return X86EMUL_UNHANDLEABLE;
|
||||
|
||||
switch ( reg )
|
||||
{
|
||||
case MSR_TSC_AUX:
|
||||
|
||||