crypto: aspeed - add error handling if dmam_alloc_coherent() failed
authorNeal Liu <neal_liu@aspeedtech.com>
Fri, 24 Feb 2023 02:05:21 +0000 (10:05 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Mar 2023 09:06:44 +0000 (17:06 +0800)
commita1862c3b0875a0cdfa0e30c508855324577e124b
treeb242025686086c191fbb99e5ac01af87e606271e
parentf84155ca851849e5e8981fddd3945a6cfeea220c
crypto: aspeed - add error handling if dmam_alloc_coherent() failed

Since the acry_dev->buf_addr may be NULL, add error handling to
prevent any additional access to avoid potential issues.

Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/aspeed/aspeed-acry.c