aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2016-09-19 07:11:59 +0100
committerPaolo Bonzini <[email protected]>2016-09-20 09:26:30 +0200
commitadad0d02a7d3c958121a4eb9d126015a2353db94 (patch)
treeff0350eccccf62fb4d4515cc06120f6c825869c2 /scripts/gdb/linux/lists.py
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 <[email protected]> Acked-by: Joerg Roedel <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions