aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/selinux/ss/policydb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c
index e9394e7adc84..f4eadd3f7350 100644
--- a/security/selinux/ss/policydb.c
+++ b/security/selinux/ss/policydb.c
@@ -1101,7 +1101,7 @@ static int str_read(char **strp, gfp_t flags, void *fp, u32 len)
1101 if ((len == 0) || (len == (u32)-1)) 1101 if ((len == 0) || (len == (u32)-1))
1102 return -EINVAL; 1102 return -EINVAL;
1103 1103
1104 str = kmalloc(len + 1, flags); 1104 str = kmalloc(len + 1, flags | __GFP_NOWARN);
1105 if (!str) 1105 if (!str)
1106 return -ENOMEM; 1106 return -ENOMEM;
1107 1107