diff options
| author | Tianjia Zhang <[email protected]> | 2023-09-18 08:38:50 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2023-09-20 05:10:10 +0000 |
| commit | 21155620fbf2edbb071144894ff9d67ba9a1faa0 (patch) | |
| tree | e4c39faf9fa80b46c6ba5f1571ae8e3e2c862a1f /drivers/fpga/tests/fpga-region-test.c | |
| parent | Linux 6.6-rc1 (diff) | |
| download | kernel-21155620fbf2edbb071144894ff9d67ba9a1faa0.tar.gz kernel-21155620fbf2edbb071144894ff9d67ba9a1faa0.zip | |
crypto: sm2 - Fix crash caused by uninitialized context
In sm2_compute_z_digest() function, the newly allocated structure
mpi_ec_ctx is used, but forget to initialize it, which will cause
a crash when performing subsequent operations.
Fixes: e5221fa6a355 ("KEYS: asymmetric: Move sm2 code into x509_public_key")
Cc: [email protected] # v6.5
Signed-off-by: Tianjia Zhang <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-region-test.c')
0 files changed, 0 insertions, 0 deletions
