crypto: ccp - fix error handling
Subsystems (2)
PATCH 1/1 crypto: ccp - fix error handling
Fix resource leak in error handling.
Signed-off-by Pavel Machek (CIP) <[email protected]>
drivers/crypto/ccp/ccp-ops.c +1 -1
@@ -1744,7 +1744,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 */
Signature · 2 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Quoted 3 lines · Pavel Machek
Fix resource leak in error handling.
Signed-off-by Pavel Machek (CIP) <[email protected]>
Acked-by John Allen <[email protected]>
Quoted 18 lines
drivers/crypto/ccp/ccp-ops.c +1
-1@@ -1744,7 +1744,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 */ Signature · 3 lines
-- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Tom Lendacky
maintainerQuoted 1 line · Pavel Machek
Fix resource leak in error handling.
Does it need a Fixes: tag?
Thanks,
Tom
Quoted 17 lines
Signed-off-by Pavel Machek (CIP) <[email protected]>drivers/crypto/ccp/ccp-ops.c +1
-1@@ -1744,7 +1744,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 */
Herbert Xu
maintainerQuoted 3 lines · Pavel Machek
Fix resource leak in error handling.
Signed-off-by Pavel Machek (CIP) <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt