aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_meminit.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test_meminit.c')
-rw-r--r--lib/test_meminit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_meminit.c b/lib/test_meminit.c
index 62d19f270cad..9729f271d150 100644
--- a/lib/test_meminit.c
+++ b/lib/test_meminit.c
@@ -222,7 +222,7 @@ static int __init do_kmem_cache_size(size_t size, bool want_ctor,
222 * Copy the buffer to check that it's not wiped on 222 * Copy the buffer to check that it's not wiped on
223 * free(). 223 * free().
224 */ 224 */
225 buf_copy = kmalloc(size, GFP_KERNEL); 225 buf_copy = kmalloc(size, GFP_ATOMIC);
226 if (buf_copy) 226 if (buf_copy)
227 memcpy(buf_copy, buf, size); 227 memcpy(buf_copy, buf, size);
228 228