Skip to content

Commit e356c49

Browse files
Pavel Machekherbertx
authored andcommitted
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>
1 parent f74bf73 commit e356c49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/crypto/ccp/ccp-ops.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ ccp_run_sha_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd)
17451745
break;
17461746
default:
17471747
ret = -EINVAL;
1748-
goto e_ctx;
1748+
goto e_data;
17491749
}
17501750
} else {
17511751
/* Stash the context */

0 commit comments

Comments
 (0)