]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - security/integrity/evm/evm_crypto.c
KEYS: Merge the type-specific data with the payload data
[karo-tx-linux.git] / security / integrity / evm / evm_crypto.c
index 159ef3ea41308dbb2ef44e2c491d44083c27d72f..461f8d89157948510fda91e3286eab12d2e456ab 100644 (file)
@@ -247,7 +247,7 @@ int evm_init_key(void)
                return -ENOENT;
 
        down_read(&evm_key->sem);
-       ekp = evm_key->payload.data;
+       ekp = evm_key->payload.data[0];
        if (ekp->decrypted_datalen > MAX_KEY_SIZE) {
                rc = -EINVAL;
                goto out;