Re: [PATCH] crypto: caam - fix invalid dereference in caam_rsa_init_tfm()

2017-04-05 Thread Herbert Xu
On Mon, Apr 03, 2017 at 06:30:07PM +0300, Horia Geantă wrote: > In case caam_jr_alloc() fails, ctx->dev carries the error code, > thus accessing it with dev_err() is incorrect. > > Cc: # 4.8+ > Fixes: 8c419778ab57e ("crypto: caam - add support for RSA algorithm") > Signed-off-by: Horia Geantă P

[PATCH] crypto: caam - fix invalid dereference in caam_rsa_init_tfm()

2017-04-03 Thread Horia Geantă
In case caam_jr_alloc() fails, ctx->dev carries the error code, thus accessing it with dev_err() is incorrect. Cc: # 4.8+ Fixes: 8c419778ab57e ("crypto: caam - add support for RSA algorithm") Signed-off-by: Horia Geantă --- drivers/crypto/caam/caampkc.c | 2 +- 1 file changed, 1 insertion(+), 1