From: Michael S. Tsirkin Date: Wed, 18 Jan 2012 18:07:09 +0000 (+0200) Subject: KVM: fix error handling for out of range irq X-Git-Tag: v3.4-rc1~59^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b93a35532767a2cf78bdbc88730d5c28aa66b941;p=pandora-kernel.git 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 Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- Reading git-diff-tree failed