lkml.org 
[lkml]   [2012]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kvm: fix error handling for out of range
On Wed, Jan 18, 2012 at 08:07:09PM +0200, Michael S. Tsirkin wrote:
> 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 <mst@redhat.com>
> ---
> virt/kvm/assigned-dev.c | 4 +---
> 1 files changed, 1 insertions(+), 3 deletions(-)

Applied, thanks.



\
 
 \ /
  Last update: 2012-01-19 13:15    [W:0.035 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site