Merge master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6:
[CRYPTO] tcrypt: Fix error checking for comp allocation
[CRYPTO] doc: Fix typo in hash example
[CRYPTO] api: scatterwalk_copychunks() fails to advance through scatterlist

+4 -4
+1 -1
Documentation/crypto/api-intro.txt
··· 60 60 desc.tfm = tfm; 61 61 desc.flags = 0; 62 62 63 - if (crypto_hash_digest(&desc, &sg, 2, result)) 63 + if (crypto_hash_digest(&desc, sg, 2, result)) 64 64 fail(); 65 65 66 66 crypto_free_hash(tfm);
+2 -2
crypto/scatterwalk.c
··· 91 91 memcpy_dir(buf, vaddr, len_this_page, out); 92 92 scatterwalk_unmap(vaddr, out); 93 93 94 + scatterwalk_advance(walk, nbytes); 95 + 94 96 if (nbytes == len_this_page) 95 97 break; 96 98 ··· 101 99 102 100 scatterwalk_pagedone(walk, out, 1); 103 101 } 104 - 105 - scatterwalk_advance(walk, nbytes); 106 102 } 107 103 EXPORT_SYMBOL_GPL(scatterwalk_copychunks);
+1 -1
crypto/tcrypt.c
··· 768 768 tv = (void *)tvmem; 769 769 770 770 tfm = crypto_alloc_comp("deflate", 0, CRYPTO_ALG_ASYNC); 771 - if (tfm == NULL) { 771 + if (IS_ERR(tfm)) { 772 772 printk("failed to load transform for deflate\n"); 773 773 return; 774 774 }