diff options
| author | Michael S. Tsirkin <[email protected]> | 2012-01-18 20:07:09 +0200 |
|---|---|---|
| committer | Avi Kivity <[email protected]> | 2012-03-05 14:52:43 +0200 |
| commit | b93a35532767a2cf78bdbc88730d5c28aa66b941 (patch) | |
| tree | 604c5c62ed765b1059735056a01c18020b0e4c26 /tools/perf/scripts/python/bin | |
| parent | e2358851efbcdc34583ee11971a6e4d587ea8bf9 (diff) | |
KVM: fix error handling for out of range irq
find_index_from_host_irq returns 0 on error
but callers assume < 0 on error. This should
not matter much: an out of range irq should never happen since
irq handler was registered with this irq #,
and even if it does we get a spurious msix irq in guest
and typically nothing terrible happens.
Still, better to make it consistent.
Signed-off-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions