s390/zcrypt: fix broken zcrypt_send_cprb in-kernel api function
authorHarald Freudenberger <freude@linux.ibm.com>
Fri, 12 Oct 2018 06:35:24 +0000 (08:35 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 15 Oct 2018 10:16:57 +0000 (12:16 +0200)
With the new multi zcrypt device node support there came
in a code rework which broke the in-kernel api function
zcrypt_send_cprb(). This function is used by the pkey kernel
module and as an effect, transforming a secure key into a
protected key did not work any more.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/zcrypt_api.c

index bb7ed34..eb93c2d 100644 (file)
@@ -893,7 +893,7 @@ out:
 
 long zcrypt_send_cprb(struct ica_xcRB *xcRB)
 {
-       return _zcrypt_send_cprb(NULL, xcRB);
+       return _zcrypt_send_cprb(&ap_perms, xcRB);
 }
 EXPORT_SYMBOL(zcrypt_send_cprb);