diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-07-12 01:29:02 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-07-12 01:29:02 -0400 |
| commit | ae94b8075a2ed58d2318ef03827b25bc844f844e (patch) | |
| tree | 7211f558d841cb40e1015d0b7527643ad55cb8e7 /crypto/tcrypt.c | |
| parent | eca91e7838ec92e8c12122849ec7539c4765b689 (diff) | |
| parent | a26929fb489188ff959b1715ee67f0c9f84405b5 (diff) | |
Merge branch 'linus' into x86/core
Conflicts:
arch/x86/mm/ioremap.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'crypto/tcrypt.c')
| -rw-r--r-- | crypto/tcrypt.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 6beabc5abd07..e47f6e02133c 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
| @@ -586,12 +586,6 @@ static void test_cipher(char *algo, int enc, | |||
| 586 | j = 0; | 586 | j = 0; |
| 587 | for (i = 0; i < tcount; i++) { | 587 | for (i = 0; i < tcount; i++) { |
| 588 | 588 | ||
| 589 | data = kzalloc(template[i].ilen, GFP_KERNEL); | ||
| 590 | if (!data) | ||
| 591 | continue; | ||
| 592 | |||
| 593 | memcpy(data, template[i].input, template[i].ilen); | ||
| 594 | |||
| 595 | if (template[i].iv) | 589 | if (template[i].iv) |
| 596 | memcpy(iv, template[i].iv, MAX_IVLEN); | 590 | memcpy(iv, template[i].iv, MAX_IVLEN); |
| 597 | else | 591 | else |
| @@ -613,10 +607,8 @@ static void test_cipher(char *algo, int enc, | |||
| 613 | printk("setkey() failed flags=%x\n", | 607 | printk("setkey() failed flags=%x\n", |
| 614 | crypto_ablkcipher_get_flags(tfm)); | 608 | crypto_ablkcipher_get_flags(tfm)); |
| 615 | 609 | ||
| 616 | if (!template[i].fail) { | 610 | if (!template[i].fail) |
| 617 | kfree(data); | ||
| 618 | goto out; | 611 | goto out; |
| 619 | } | ||
| 620 | } | 612 | } |
| 621 | 613 | ||
| 622 | temp = 0; | 614 | temp = 0; |
