summaryrefslogtreecommitdiffstats
path: root/lib/prime_numbers.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prime_numbers.c')
-rw-r--r--lib/prime_numbers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/prime_numbers.c b/lib/prime_numbers.c
index c9b3c29614aa..550eec457c2e 100644
--- a/lib/prime_numbers.c
+++ b/lib/prime_numbers.c
@@ -124,7 +124,8 @@ static bool expand_to_next_prime(unsigned long x)
return false;
sz = round_up(sz, BITS_PER_LONG);
- new = kmalloc(sizeof(*new) + bitmap_size(sz), GFP_KERNEL);
+ new = kmalloc(sizeof(*new) + bitmap_size(sz),
+ GFP_KERNEL | __GFP_NOWARN);
if (!new)
return false;