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>
This commit is contained in:
Pavel Machek 2020-09-21 13:34:35 +02:00 committed by Herbert Xu
parent f74bf733fe
commit e356c49c6c

View File

@ -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 */