diff options
author | Kilian Zinnecker <kilian.zinnecker@mail.de> | 2024-02-19 01:16:58 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-02-24 03:41:20 +0300 |
commit | a24e3b583ea2db3418f0c6ae1f12b07ca96531cc (patch) | |
tree | bab7cdf9200dcc7c340768fb7dc6690804ed63b3 /crypto | |
parent | e63df1ec9a16dd9e13e9068243e64876de06f795 (diff) | |
download | linux-a24e3b583ea2db3418f0c6ae1f12b07ca96531cc.tar.xz |
crypto: rockchip - fix to check return value
crypto_engine_alloc_init may fail, e.g., as result of a fail of
devm_kzalloc or kthread_create_worker. Other drivers (e.g.,
amlogic-gxl-core.c, aspeed-acry.c, aspeed-hace.c, jr.c, etc.) check
crypto_engine_alloc_init's return value and return -ENOMEM in case
a NULL pointer is returned. This patch inserts a corresponding
return value check to rk3288_crypto.c.
Signed-off-by: Kilian Zinnecker <kilian.zinnecker@mail.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions