summaryrefslogtreecommitdiff
path: root/drivers/crypto/inside-secure/eip93/eip93-hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/inside-secure/eip93/eip93-hash.c')
-rw-r--r--drivers/crypto/inside-secure/eip93/eip93-hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/inside-secure/eip93/eip93-hash.c b/drivers/crypto/inside-secure/eip93/eip93-hash.c
index ac13d90a2b7c..2705855475b2 100644
--- a/drivers/crypto/inside-secure/eip93/eip93-hash.c
+++ b/drivers/crypto/inside-secure/eip93/eip93-hash.c
@@ -332,7 +332,7 @@ static int __eip93_hash_update(struct ahash_request *req, bool complete_req)
* and then reset to SHA256_BLOCK_SIZE.
*/
while (to_consume > max_read) {
- block = kzalloc(sizeof(*block), GFP_ATOMIC);
+ block = kzalloc_obj(*block, GFP_ATOMIC);
if (!block) {
ret = -ENOMEM;
goto free_blocks;