diff options
author | Gary R Hook <gary.hook@amd.com> | 2019-07-31 00:03:25 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-09 15:11:39 +1000 |
commit | 114e2ccd9eff5859760cfa3bcbb707c3eda63fc3 (patch) | |
tree | ba71b77688c003238a1b3838d1f3747fe91dfe2b /drivers/crypto/inside-secure | |
parent | 514838e920d06f5c2ba56e9656107dfcbbb90219 (diff) | |
download | lwn-114e2ccd9eff5859760cfa3bcbb707c3eda63fc3.tar.gz lwn-114e2ccd9eff5859760cfa3bcbb707c3eda63fc3.zip |
crypto: ccp - Clean up and exit correctly on allocation failure
Return and fail driver initialization if a DMA pool or coherent memory
can't be allocated. Be sure to clean up allocated memory.
Fixes: 4b394a232df7 ("crypto: ccp - Let a v5 CCP provide the same function as v3")
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/inside-secure')
0 files changed, 0 insertions, 0 deletions