crypto: tegra-aes - fix error-valued pointer dereference
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 25 Oct 2012 14:55:04 +0000 (22:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Nov 2012 09:32:27 +0000 (17:32 +0800)
clk_put(dd->aes_clk) will dereference an error-valued pointer since the
dd->aes_clk is a ERR_PTR() value. The correct check is call clk_put()
if !IS_ERR(dd->aes_clk).

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found