diff options
author | Dan Carpenter <error27@gmail.com> | 2011-03-23 09:20:27 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-03-26 22:45:17 -0400 |
commit | cdc712d884cec0354d6899e7a329eee542ca2f7d (patch) | |
tree | 4ac0a81c46dc4aac8240670a2864a4d3dd42e945 /drivers/crypto/caam/caamalg.c | |
parent | 54e198d4c162b36ba864ecc658c829454074523f (diff) |
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 <error27@gmail.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/caamalg.c')
-rw-r--r-- | drivers/crypto/caam/caamalg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c index 140343496096..dce44b2d1833 100644 --- a/drivers/crypto/caam/caamalg.c +++ b/drivers/crypto/caam/caamalg.c | |||
@@ -1136,7 +1136,7 @@ static int __init caam_algapi_init(void) | |||
1136 | if (IS_ERR(t_alg)) { | 1136 | if (IS_ERR(t_alg)) { |
1137 | err = PTR_ERR(t_alg); | 1137 | err = PTR_ERR(t_alg); |
1138 | dev_warn(ctrldev, "%s alg allocation failed\n", | 1138 | dev_warn(ctrldev, "%s alg allocation failed\n", |
1139 | t_alg->crypto_alg.cra_driver_name); | 1139 | driver_algs[i].driver_name); |
1140 | continue; | 1140 | continue; |
1141 | } | 1141 | } |
1142 | 1142 | ||