Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bsdkm/wolfkmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ static int wolfkdriv_gcm_work(device_t dev, wolfkdriv_session_t * session,

if (error) {
error = EINVAL;
goto gcm_work_out;
}
}
else {
Expand Down
8 changes: 4 additions & 4 deletions linuxkm/lkcapi_aes_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static int km_AesInitCommon(
if (! ctx->aes_encrypt) {
pr_err("%s: allocation of %zu bytes for encryption key failed.\n",
name, sizeof(*ctx->aes_encrypt));
err = -MEMORY_E;
err = -ENOMEM;
goto out;
}

Expand All @@ -319,7 +319,7 @@ static int km_AesInitCommon(
if (! ctx->aes_decrypt) {
pr_err("%s: allocation of %zu bytes for decryption key failed.\n",
name, sizeof(*ctx->aes_decrypt));
err = -MEMORY_E;
err = -ENOMEM;
goto out;
}

Expand All @@ -341,7 +341,7 @@ static int km_AesInitCommon(
if (! ctx->aes_encrypt_C) {
pr_err("%s: allocation of %zu bytes for encryption key failed.\n",
name, sizeof(*ctx->aes_encrypt_C));
err = -MEMORY_E;
err = -ENOMEM;
goto out;
}

Expand Down Expand Up @@ -1577,7 +1577,7 @@ static int km_AesXtsInitCommon(struct km_AesXtsCtx * ctx, const char * name)
ctx->aesXts = (XtsAes *)malloc(sizeof(*ctx->aesXts));

if (! ctx->aesXts)
return -MEMORY_E;
return -ENOMEM;

err = wc_AesXtsInit(ctx->aesXts, NULL, INVALID_DEVID);

Expand Down
Loading