X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=arch%2Fx86%2Fcrypto%2Fnhpoly1305-avx2-glue.c;h=80fcb85736e1d388830eb08dd6054c43d302c8d1;hb=0bffedbce90818228f554651baf8d7c75f2876d8;hp=f7567cbd35b6958dbac7e54f4a4406b98bf0fa79;hpb=9d22167f34305280c5dd57a74c21651da3c23015;p=linux-2.6-microblaze.git diff --git a/arch/x86/crypto/nhpoly1305-avx2-glue.c b/arch/x86/crypto/nhpoly1305-avx2-glue.c index f7567cbd35b6..80fcb85736e1 100644 --- a/arch/x86/crypto/nhpoly1305-avx2-glue.c +++ b/arch/x86/crypto/nhpoly1305-avx2-glue.c @@ -29,7 +29,7 @@ static int nhpoly1305_avx2_update(struct shash_desc *desc, return crypto_nhpoly1305_update(desc, src, srclen); do { - unsigned int n = min_t(unsigned int, srclen, PAGE_SIZE); + unsigned int n = min_t(unsigned int, srclen, SZ_4K); kernel_fpu_begin(); crypto_nhpoly1305_update_helper(desc, src, n, _nh_avx2);