commit | 69fbc505c87bf90703d36860f5c911d3e93b17df | [log] [tgz] |
---|---|---|
author | Horia Geantă <horia.geanta@nxp.com> | Mon Apr 03 18:30:07 2017 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Apr 18 07:11:49 2017 +0200 |
tree | b5a494254db81e7aa54e0b3a6c389a8f389940fe | |
parent | 75964d0f191466fed93a85298bf7a75a46abf597 [diff] |
crypto: caam - fix invalid dereference in caam_rsa_init_tfm() commit 33fa46d7b310e06d2cb2ab5417c100af120bfb65 upstream. In case caam_jr_alloc() fails, ctx->dev carries the error code, thus accessing it with dev_err() is incorrect. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>