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:
Wei Liu committed 2017-02-08 09:24:13 +00:00
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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.