We could be referencing the last + 1 element of level_name[]
array which would cause a pointer exception.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
int p2m_dump_show(struct seq_file *m, void *v)
{
static const char * const level_name[] = { "top", "middle",
- "entry", "abnormal" };
+ "entry", "abnormal", NULL};
static const char * const type_name[] = { "identity", "missing",
- "pfn", "abnormal"};
+ "pfn", "abnormal", NULL};
#define TYPE_IDENTITY 0
#define TYPE_MISSING 1
#define TYPE_PFN 2