dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/maps-Terminate-modes-map-correctly.patch

b7f731
From e47781fcea24778a16e4be53e5b84eab8db9413c Mon Sep 17 00:00:00 2001
b7f731
From: Jes Sorensen <jsorensen@fb.com>
b7f731
Date: Thu, 20 Apr 2017 00:13:31 -0400
b7f731
Subject: [RHEL7.5 PATCH 083/169] maps: Terminate 'modes' map correctly.
b7f731
b7f731
While we are unlikely to fail here, terminate the modes map correctly
b7f731
to ensure we don't start running over undefined data.
b7f731
b7f731
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
b7f731
---
b7f731
 maps.c | 1 +
b7f731
 1 file changed, 1 insertion(+)
b7f731
b7f731
diff --git a/maps.c b/maps.c
b7f731
index a8a4639..a2d293b 100644
b7f731
--- a/maps.c
b7f731
+++ b/maps.c
b7f731
@@ -106,6 +106,7 @@ mapping_t modes[] = {
b7f731
 	{ "grow", GROW},
b7f731
 	{ "incremental", INCREMENTAL},
b7f731
 	{ "auto-detect", AUTODETECT},
b7f731
+	{ NULL, 0 }
b7f731
 };
b7f731
 
b7f731
 mapping_t faultylayout[] = {
b7f731
-- 
b7f731
2.7.4
b7f731