Re: [PATCH] crypto: tegra-aes - fix error-valued pointer dereference

2012-11-09 Thread Herbert Xu
On Thu, Oct 25, 2012 at 10:55:04PM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > 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 genera

[PATCH] crypto: tegra-aes - fix error-valued pointer dereference

2012-10-25 Thread Wei Yongjun
From: Wei Yongjun 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 Yongju