KVM: s390: ENOTSUPP -> EOPNOTSUPP fixups
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 5 Dec 2019 12:40:43 +0000 (07:40 -0500)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 31 Jan 2020 11:49:21 +0000 (12:49 +0100)
There is no ENOTSUPP for userspace.

Reported-by: Julian Wiedmann <jwi@linux.ibm.com>
Fixes: 519783935451 ("KVM: s390: introduce ais mode modify function")
Fixes: 2c1a48f2e5ed ("KVM: S390: add new group for flic")
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c

index 165dea4c7f193477529ae3ae2f9ce7691ed5b842..c06c89d370a737bc5c2bf9df2d25ea34dc3d0f8a 100644 (file)
@@ -2190,7 +2190,7 @@ static int flic_ais_mode_get_all(struct kvm *kvm, struct kvm_device_attr *attr)
                return -EINVAL;
 
        if (!test_kvm_facility(kvm, 72))
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        mutex_lock(&fi->ais_lock);
        ais.simm = fi->simm;
@@ -2499,7 +2499,7 @@ static int modify_ais_mode(struct kvm *kvm, struct kvm_device_attr *attr)
        int ret = 0;
 
        if (!test_kvm_facility(kvm, 72))
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        if (copy_from_user(&req, (void __user *)attr->addr, sizeof(req)))
                return -EFAULT;
@@ -2579,7 +2579,7 @@ static int flic_ais_mode_set_all(struct kvm *kvm, struct kvm_device_attr *attr)
        struct kvm_s390_ais_all ais;
 
        if (!test_kvm_facility(kvm, 72))
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        if (copy_from_user(&ais, (void __user *)attr->addr, sizeof(ais)))
                return -EFAULT;