diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-12 21:51:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-12 21:51:14 -0500 |
commit | c597b6bcd5c624534afc3df65cdc42bb05173bca (patch) | |
tree | 8fedd26c5dc0357a10db08a6bef31085e2508280 /crypto/algif_aead.c | |
parent | 60b7eca1dc2ec066916b3b7ac6ad89bea13cb9af (diff) | |
parent | 48d627648141479c8be8acd110191072e24eba25 (diff) |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto update from Herbert Xu:
"Algorithms:
- Add RSA padding algorithm
Drivers:
- Add GCM mode support to atmel
- Add atmel support for SAMA5D2 devices
- Add cipher modes to talitos
- Add rockchip driver for rk3288
- Add qat support for C3XXX and C62X"
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (103 commits)
crypto: hifn_795x, picoxcell - use ablkcipher_request_cast
crypto: qat - fix SKU definiftion for c3xxx dev
crypto: qat - Fix random config build issue
crypto: ccp - use to_pci_dev and to_platform_device
crypto: qat - Rename dh895xcc mmp firmware
crypto: 842 - remove WARN inside printk
crypto: atmel-aes - add debug facilities to monitor register accesses.
crypto: atmel-aes - add support to GCM mode
crypto: atmel-aes - change the DMA threshold
crypto: atmel-aes - fix the counter overflow in CTR mode
crypto: atmel-aes - fix atmel-ctr-aes driver for RFC 3686
crypto: atmel-aes - create sections to regroup functions by usage
crypto: atmel-aes - fix typo and indentation
crypto: atmel-aes - use SIZE_IN_WORDS() helper macro
crypto: atmel-aes - improve performances of data transfer
crypto: atmel-aes - fix atmel_aes_remove()
crypto: atmel-aes - remove useless AES_FLAGS_DMA flag
crypto: atmel-aes - reduce latency of DMA completion
crypto: atmel-aes - remove unused 'err' member of struct atmel_aes_dev
crypto: atmel-aes - rework crypto request completion
...
Diffstat (limited to 'crypto/algif_aead.c')
-rw-r--r-- | crypto/algif_aead.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c index 6d4d4569447e..4c93b8a4e81e 100644 --- a/crypto/algif_aead.c +++ b/crypto/algif_aead.c | |||
@@ -213,7 +213,7 @@ static int aead_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) | |||
213 | } | 213 | } |
214 | 214 | ||
215 | while (size) { | 215 | while (size) { |
216 | unsigned long len = size; | 216 | size_t len = size; |
217 | struct scatterlist *sg = NULL; | 217 | struct scatterlist *sg = NULL; |
218 | 218 | ||
219 | /* use the existing memory in an allocated page */ | 219 | /* use the existing memory in an allocated page */ |
@@ -247,7 +247,7 @@ static int aead_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) | |||
247 | /* allocate a new page */ | 247 | /* allocate a new page */ |
248 | len = min_t(unsigned long, size, aead_sndbuf(sk)); | 248 | len = min_t(unsigned long, size, aead_sndbuf(sk)); |
249 | while (len) { | 249 | while (len) { |
250 | int plen = 0; | 250 | size_t plen = 0; |
251 | 251 | ||
252 | if (sgl->cur >= ALG_MAX_PAGES) { | 252 | if (sgl->cur >= ALG_MAX_PAGES) { |
253 | aead_put_sgl(sk); | 253 | aead_put_sgl(sk); |
@@ -256,7 +256,7 @@ static int aead_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) | |||
256 | } | 256 | } |
257 | 257 | ||
258 | sg = sgl->sg + sgl->cur; | 258 | sg = sgl->sg + sgl->cur; |
259 | plen = min_t(int, len, PAGE_SIZE); | 259 | plen = min_t(size_t, len, PAGE_SIZE); |
260 | 260 | ||
261 | sg_assign_page(sg, alloc_page(GFP_KERNEL)); | 261 | sg_assign_page(sg, alloc_page(GFP_KERNEL)); |
262 | err = -ENOMEM; | 262 | err = -ENOMEM; |