crypto: caam - dereferencing ERR_PTR on allocation failure
Subsystems (3)
PATCH 1/1 crypto: caam - dereferencing ERR_PTR on allocation failure
t_alg is an ERR_PTR here so we can't dereference it.
Signed-off-by Dan Carpenter <[email protected]>
---
This doesn't compile for me. Sorry.
drivers/crypto/caam/caamalg.c +1 -1
@@ -1136,7 +1136,7 @@ static int __init caam_algapi_init(void)if (IS_ERR (t_alg)) { err =PTR_ERR (t_alg);dev_warn (ctrldev,"%s alg allocation failed\n" , - t_alg->crypto_alg.cra_driver_name); + driver_algs[i].driver_name);continue ; }
Re: [patch] crypto: caam - dereferencing ERR_PTR on allocation
Quoted 4 lines · On Tue, 15 Mar 2011 09:57:47 +0300 Dan Carpenter <[email protected]> wrote:
t_algis anERR_PTRhere so we can't dereference it.Signed-off-by Dan Carpenter <[email protected]>---
Acked-by Kim Phillips <[email protected]>
Thanks,
Kim
Herbert Xu
AppliedRe: [patch] crypto: caam - dereferencing ERR_PTR on allocation
Quoted 9 lines · Kim Phillips
Quoted 4 lines · On Tue, 15 Mar 2011 09:57:47 +0300 Dan Carpenter <[email protected]> wrote:
t_algis anERR_PTRhere so we can't dereference it.Signed-off-by Dan Carpenter <[email protected]>---
Acked-by Kim Phillips <[email protected]>
Applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt