X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=crypto%2Falgif_skcipher.c;h=83187f497c7c65dddd2248170a50976e568d82e5;hb=eca9fdf32dd48976eab18d310acb0b8d4cc9bf26;hp=a19c027b29bde504ac8eae4b4572947a69ed2335;hpb=4fbd269f1f9f8020dd9474b60e55c4f34d267b08;p=firefly-linux-kernel-4.4.55.git diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index a19c027b29bd..83187f497c7c 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -49,7 +49,7 @@ struct skcipher_ctx { struct ablkcipher_request req; }; -#define MAX_SGL_ENTS ((PAGE_SIZE - sizeof(struct skcipher_sg_list)) / \ +#define MAX_SGL_ENTS ((4096 - sizeof(struct skcipher_sg_list)) / \ sizeof(struct scatterlist) - 1) static inline int skcipher_sndbuf(struct sock *sk)