]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - security/selinux/ss/policydb.c
selinux: Add __GFP_NOWARN to allocation at str_read()
[mirror_ubuntu-bionic-kernel.git] / security / selinux / ss / policydb.c
index 6e8c8056d7adfa7f57c6f0041087a49eb1575605..6688ac5b991ee433999272f34010981d4448b676 100644 (file)
@@ -1099,7 +1099,7 @@ static int str_read(char **strp, gfp_t flags, void *fp, u32 len)
        if ((len == 0) || (len == (u32)-1))
                return -EINVAL;
 
-       str = kmalloc(len + 1, flags);
+       str = kmalloc(len + 1, flags | __GFP_NOWARN);
        if (!str)
                return -ENOMEM;