提交 e356c49c 编写于 作者: P Pavel Machek 提交者: Herbert Xu

crypto: ccp - fix error handling

Fix resource leak in error handling.
Signed-off-by: NPavel Machek (CIP) <pavel@denx.de>
Acked-by: NJohn Allen <john.allen@amd.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 f74bf733
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册