[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190624050937.6977-1-houweitaoo@gmail.com>
Date: Mon, 24 Jun 2019 13:09:37 +0800
From: Weitao Hou <houweitaoo@...il.com>
To: akpm@...ux-foundation.org, urezki@...il.com, rpenyaev@...e.de,
guro@...com, rick.p.edgecombe@...el.com, rppt@...ux.ibm.com,
aryabinin@...tuozzo.com
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Weitao Hou <houweitaoo@...il.com>
Subject: [PATCH] mm/vmalloc: fix a compile warning in mm
mm/vmalloc.c: In function ‘pcpu_get_vm_areas’:
mm/vmalloc.c:976:4: warning: ‘lva’ may be used uninitialized in
this function [-Wmaybe-uninitialized]
insert_vmap_area_augment(lva, &va->rb_node,
Signed-off-by: Weitao Hou <houweitaoo@...il.com>
---
mm/vmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 4c9e150e5ad3..78c5617fdf3f 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -913,7 +913,7 @@ adjust_va_to_fit_type(struct vmap_area *va,
unsigned long nva_start_addr, unsigned long size,
enum fit_type type)
{
- struct vmap_area *lva;
+ struct vmap_area *lva = NULL;
if (type == FL_FIT_TYPE) {
/*
--
2.18.0
Powered by blists - more mailing lists