]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccp - Release all allocated memory if sha type is invalid
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Thu, 19 Sep 2019 16:04:48 +0000 (11:04 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Oct 2019 15:06:20 +0000 (01:06 +1000)
commitd9e05df3a52a527b5db4bf939a8029b63046df39
treec533fb093d215eff2a2c388d8b8a0a219ed70856
parent3aa0840cc62e7d0f8bd5d4f49bdb6c73e280e301
crypto: ccp - Release all allocated memory if sha type is invalid

Release all allocated memory if sha type is invalid:
In ccp_run_sha_cmd, if the type of sha is invalid, the allocated
hmac_buf should be released.

v2: fix the goto.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-ops.c