Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit a24e3b58 authored by Kilian Zinnecker's avatar Kilian Zinnecker Committed by Herbert Xu
Browse files

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: default avatarKilian Zinnecker <kilian.zinnecker@mail.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e63df1ec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment