From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Otte Subject: [patch 12/12] [PATCH] kvm-s390: Fix return code for unknown ioctl numbers Date: Thu, 08 Dec 2011 10:12:42 +0100 Message-ID: <20111208091730.118247997@de.ibm.com> References: <20111208091230.874920251@de.ibm.com> Cc: Christian Borntraeger , Heiko Carstens , Martin Schwidefsky , Cornelia Huck , KVM , Joachim von Buttlar , Jens Freimann , Constantin Werner To: Avi Kivity , Marcelo Tossati Return-path: Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:49564 "EHLO e06smtp13.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752684Ab1LHJR6 (ORCPT ); Thu, 8 Dec 2011 04:17:58 -0500 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 8 Dec 2011 09:17:57 -0000 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pB89HVvN2543806 for ; Thu, 8 Dec 2011 09:17:31 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pB89HUFj028579 for ; Thu, 8 Dec 2011 02:17:30 -0700 Content-Disposition: inline; filename=fix-ioctl-return-values.patch Sender: kvm-owner@vger.kernel.org List-ID: This patch fixes the return code of kvm_arch_vcpu_ioctl in case of an unkown ioctl number. Signed-off-by: Carsten Otte --- --- arch/s390/kvm/kvm-s390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -884,7 +884,7 @@ long kvm_arch_vcpu_ioctl(struct file *fi break; } default: - r = -EINVAL; + r = -ENOTTY; } return r; }