Skip to content

Commit c611990

Browse files
committed
KVM: s390: ENOTSUPP -> EOPNOTSUPP fixups
There is no ENOTSUPP for userspace. Reported-by: Julian Wiedmann <[email protected]> Fixes: 5197839 ("KVM: s390: introduce ais mode modify function") Fixes: 2c1a48f ("KVM: S390: add new group for flic") Reviewed-by: Cornelia Huck <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
1 parent d1eef1c commit c611990

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/s390/kvm/interrupt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,7 +2190,7 @@ static int flic_ais_mode_get_all(struct kvm *kvm, struct kvm_device_attr *attr)
21902190
return -EINVAL;
21912191

21922192
if (!test_kvm_facility(kvm, 72))
2193-
return -ENOTSUPP;
2193+
return -EOPNOTSUPP;
21942194

21952195
mutex_lock(&fi->ais_lock);
21962196
ais.simm = fi->simm;
@@ -2499,7 +2499,7 @@ static int modify_ais_mode(struct kvm *kvm, struct kvm_device_attr *attr)
24992499
int ret = 0;
25002500

25012501
if (!test_kvm_facility(kvm, 72))
2502-
return -ENOTSUPP;
2502+
return -EOPNOTSUPP;
25032503

25042504
if (copy_from_user(&req, (void __user *)attr->addr, sizeof(req)))
25052505
return -EFAULT;
@@ -2579,7 +2579,7 @@ static int flic_ais_mode_set_all(struct kvm *kvm, struct kvm_device_attr *attr)
25792579
struct kvm_s390_ais_all ais;
25802580

25812581
if (!test_kvm_facility(kvm, 72))
2582-
return -ENOTSUPP;
2582+
return -EOPNOTSUPP;
25832583

25842584
if (copy_from_user(&ais, (void __user *)attr->addr, sizeof(ais)))
25852585
return -EFAULT;

0 commit comments

Comments
 (0)