Skip to content

Commit

Permalink
x86: crypto: sm4_zhaoxin_gmi: adapt to simd_skcipher_create_compat() …
Browse files Browse the repository at this point in the history
…changes

Follow commit 3c44d31 ("crypto: simd - Do not call crypto_alloc_tfm
during registration") to revise parameters for function
simd_skcipher_create_compat().

Signed-off-by: Mingcong Bai <[email protected]>
  • Loading branch information
MingcongBai committed Nov 13, 2024
1 parent 6ba6ec9 commit c8f50a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/crypto/sm4_zhaoxin_gmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ static int __init gmi_sm4_init(void)
algname = sm4_algs[i].base.cra_name + 2;
drvname = sm4_algs[i].base.cra_driver_name + 2;
basename = sm4_algs[i].base.cra_driver_name;
simd = simd_skcipher_create_compat(algname, drvname, basename);
simd = simd_skcipher_create_compat(sm4_algs + i, algname, drvname, basename);
err = PTR_ERR(simd);
if (IS_ERR(simd))
goto unregister_simds;
Expand Down

0 comments on commit c8f50a1

Please sign in to comment.