KVM: s390: storage keys fit into a char
No need to convert the storage key into an unsigned long, the target function expects a char as argument. Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
parent
154c8c19c3
commit
fe69eabf8d
@ -1120,8 +1120,7 @@ static long kvm_s390_set_skeys(struct kvm *kvm, struct kvm_s390_skeys *args)
|
||||
break;
|
||||
}
|
||||
|
||||
r = set_guest_storage_key(current->mm, hva,
|
||||
(unsigned long)keys[i], 0);
|
||||
r = set_guest_storage_key(current->mm, hva, keys[i], 0);
|
||||
if (r)
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user