summaryrefslogtreecommitdiff
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-09-19 07:11:59 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-09-20 09:26:30 +0200
commitadad0d02a7d3c958121a4eb9d126015a2353db94 (patch)
treeff0350eccccf62fb4d4515cc06120f6c825869c2 /Documentation/devicetree
parent095cf55df715d14d5dad75326faf5984e7fc0b3a (diff)
kvm: svm: fix unsigned compare less than zero comparison
vm_data->avic_vm_id is a u32, so the check for a error return (less than zero) such as -EAGAIN from avic_get_next_vm_id currently has no effect whatsoever. Fix this by using a temporary int for the comparison and assign vm_data->avic_vm_id to this. I used an explicit u32 cast in the assignment to show why vm_data->avic_vm_id cannot be used in the assign/compare steps. Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions