]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: ia64: fix the error of ioctl KVM_IRQ_LINE if no irq chip
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 12 Mar 2010 02:11:15 +0000 (10:11 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:33 +0000 (12:15 +0300)
commit1eb5c78542ce1263be44008d073e89ed09e10a41
tree7a723ff9233098b9636aac57dbdf44176bc81ba9
parent4ba99986545208918242088785c3748d60d94a31
KVM: ia64: fix the error of ioctl KVM_IRQ_LINE if no irq chip

If no irq chip in kernel, ioctl KVM_IRQ_LINE will return -EFAULT.
But I see in other place such as KVM_[GET|SET]IRQCHIP, -ENXIO is
return. So this patch used -ENXIO instead of -EFAULT.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/ia64/kvm/kvm-ia64.c