projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crypto: ccp - Release all allocated memory if sha type is invalid
[linux-2.6-microblaze.git]
/
drivers
/
crypto
/
ccp
/
ccp-ops.c
diff --git
a/drivers/crypto/ccp/ccp-ops.c
b/drivers/crypto/ccp/ccp-ops.c
index
c8da8eb
..
4221936
100644
(file)
--- a/
drivers/crypto/ccp/ccp-ops.c
+++ b/
drivers/crypto/ccp/ccp-ops.c
@@
-1777,8
+1777,9
@@
ccp_run_sha_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd)
LSB_ITEM_SIZE);
break;
default:
LSB_ITEM_SIZE);
break;
default:
+ kfree(hmac_buf);
ret = -EINVAL;
ret = -EINVAL;
- goto e_
ctx
;
+ goto e_
data
;
}
memset(&hmac_cmd, 0, sizeof(hmac_cmd));
}
memset(&hmac_cmd, 0, sizeof(hmac_cmd));