commit | 11a954eebc4396b51af745e5242df05f71be6d9e | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Tue Aug 04 08:11:53 2020 +0000 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Aug 21 14:43:51 2020 +1000 |
tree | 0df2ddb2575847f33fd4c7aedda864b0e7ee1d1e | |
parent | 9a5a668dc348f98de464114411421c4e9381cf21 [diff] |
crypto: ingenic - Drop kfree for memory allocated with devm_kzalloc It's not necessary to free memory allocated with devm_kzalloc and using kfree leads to a double free. Fixes: 190873a0ea45 ("crypto: ingenic - Add hardware RNG for Ingenic JZ4780 and X1000") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>