Commit e356c49c authored by Pavel Machek's avatar Pavel Machek Committed by Herbert Xu

crypto: ccp - fix error handling

Fix resource leak in error handling.
Signed-off-by: default avatarPavel Machek (CIP) <pavel@denx.de>
Acked-by: default avatarJohn Allen <john.allen@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment