diff options
author | Pavel Machek <pavel@denx.de> | 2020-09-21 13:34:35 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-10-02 10:02:10 +0200 |
commit | e356c49c6cf0db3f00e1558749170bd56e47652d (patch) | |
tree | 992ac728126d51bd56122f52443ac69acd25088a /drivers | |
parent | crypto: cpt - simplify the return expression of cav_register_algs (diff) | |
download | linux-e356c49c6cf0db3f00e1558749170bd56e47652d.tar.xz linux-e356c49c6cf0db3f00e1558749170bd56e47652d.zip |
crypto: ccp - fix error handling
Fix resource leak in error handling.
Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
Acked-by: John Allen <john.allen@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/ccp/ccp-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c index 4e9059c5fbb5..d6a8f4e4b14a 100644 --- a/drivers/crypto/ccp/ccp-ops.c +++ b/drivers/crypto/ccp/ccp-ops.c @@ -1745,7 +1745,7 @@ ccp_run_sha_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) break; default: ret = -EINVAL; - goto e_ctx; + goto e_data; } } else { /* Stash the context */ |