aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/printk/printk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 13e839dbca07..6f598f92f2a1 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -853,9 +853,10 @@ void __init setup_log_buf(int early)
853 853
854 if (early) { 854 if (early) {
855 new_log_buf = 855 new_log_buf =
856 memblock_virt_alloc(new_log_buf_len, PAGE_SIZE); 856 memblock_virt_alloc(new_log_buf_len, LOG_ALIGN);
857 } else { 857 } else {
858 new_log_buf = memblock_virt_alloc_nopanic(new_log_buf_len, 0); 858 new_log_buf = memblock_virt_alloc_nopanic(new_log_buf_len,
859 LOG_ALIGN);
859 } 860 }
860 861
861 if (unlikely(!new_log_buf)) { 862 if (unlikely(!new_log_buf)) {