Skip to content
Commit d3e7dec0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Radim Krčmář
Browse files

KVM: Silence underflow warning in avic_get_physical_id_entry()



Smatch complains that we check cap the upper bound of "index" but don't
check for negatives.  It's a false positive because "index" is never
negative.  But it's also simple enough to make it unsigned which makes
the code easier to audit.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent 55c315ee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment