Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pavel Machek and committed by
Herbert Xu
e356c49c f74bf733

+1 -1
+1 -1
drivers/crypto/ccp/ccp-ops.c
··· 1745 1745 break; 1746 1746 default: 1747 1747 ret = -EINVAL; 1748 - goto e_ctx; 1748 + goto e_data; 1749 1749 } 1750 1750 } else { 1751 1751 /* Stash the context */