commit | 33fa46d7b310e06d2cb2ab5417c100af120bfb65 | [log] [tgz] |
---|---|---|
author | Horia Geantă <horia.geanta@nxp.com> | Mon Apr 03 18:30:07 2017 +0300 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Apr 05 21:20:16 2017 +0800 |
tree | e66e6bfb110f6046abdfd283b71ba4027f17a7ac | |
parent | ec360607a25fae97c81eef2f02268ae8ed3649b4 [diff] |
crypto: caam - fix invalid dereference in caam_rsa_init_tfm() In case caam_jr_alloc() fails, ctx->dev carries the error code, thus accessing it with dev_err() is incorrect. Cc: <stable@vger.kernel.org> # 4.8+ Fixes: 8c419778ab57e ("crypto: caam - add support for RSA algorithm") Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>