crypto: caam - dereferencing ERR_PTR on allocation failure
authorDan Carpenter <error27@gmail.com>
Wed, 23 Mar 2011 13:20:27 +0000 (21:20 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 27 Mar 2011 02:45:17 +0000 (10:45 +0800)
commitcdc712d884cec0354d6899e7a329eee542ca2f7d
tree4ac0a81c46dc4aac8240670a2864a4d3dd42e945
parent54e198d4c162b36ba864ecc658c829454074523f
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>
drivers/crypto/caam/caamalg.c