Browse Source

KVM: s390: Fix return code for unknown ioctl numbers

This patch fixes the return code of kvm_arch_vcpu_ioctl in case
of an unkown ioctl number.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Carsten Otte 13 years ago
parent
commit
3e6afcf1d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/s390/kvm/kvm-s390.c

+ 1 - 1
arch/s390/kvm/kvm-s390.c

@@ -781,7 +781,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
 		break;
 	}
 	default:
-		r = -EINVAL;
+		r = -ENOTTY;
 	}
 	return r;
 }