Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307978
b: refs/heads/master
c: a52bdec
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Nilsson committed Apr 3, 2012
1 parent 5021efc commit a05220b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17b8c8c00b5d7c0d087db3c847aff16a91c714b1
refs/heads/master: a52bdec35b9431f1b6939b35c31e04b2fd57e2f2
6 changes: 2 additions & 4 deletions trunk/arch/cris/arch-v32/drivers/cryptocop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,11 +1394,10 @@ static int create_md5_pad(int alloc_flag, unsigned long long hashed_length, char

if (padlen < MD5_MIN_PAD_LENGTH) padlen += MD5_BLOCK_LENGTH;

p = kmalloc(padlen, alloc_flag);
p = kzalloc(padlen, alloc_flag);
if (!p) return -ENOMEM;

*p = 0x80;
memset(p+1, 0, padlen - 1);

DEBUG(printk("create_md5_pad: hashed_length=%lld bits == %lld bytes\n", bit_length, hashed_length));

Expand Down Expand Up @@ -1426,11 +1425,10 @@ static int create_sha1_pad(int alloc_flag, unsigned long long hashed_length, cha

if (padlen < SHA1_MIN_PAD_LENGTH) padlen += SHA1_BLOCK_LENGTH;

p = kmalloc(padlen, alloc_flag);
p = kzalloc(padlen, alloc_flag);
if (!p) return -ENOMEM;

*p = 0x80;
memset(p+1, 0, padlen - 1);

DEBUG(printk("create_sha1_pad: hashed_length=%lld bits == %lld bytes\n", bit_length, hashed_length));

Expand Down

0 comments on commit a05220b

Please sign in to comment.