crypto: AF_ALG - remove SGL terminator indicator when chaining
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / file.c
index 4a78f981557a4b012919458993506f61fd5187a4..9de20265a78c5daec5f9edee541e553a18fe320f 100644 (file)
--- a/fs/file.c
+++ b/fs/file.c
@@ -34,7 +34,7 @@ static void *alloc_fdmem(size_t size)
         * vmalloc() if the allocation size will be considered "large" by the VM.
         */
        if (size <= (PAGE_SIZE << PAGE_ALLOC_COSTLY_ORDER)) {
-               void *data = kmalloc(size, GFP_KERNEL|__GFP_NOWARN);
+               void *data = kmalloc(size, GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY);
                if (data != NULL)
                        return data;
        }