From 8640832b5710c76ea78b521ec5f801d9aa133ba6 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Thu, 12 Jul 2012 14:27:24 -0700
Subject: [PATCH] BGQ - add creation of bitmap if it does not already exist

---
 src/plugins/select/bluegene/select_bluegene.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/plugins/select/bluegene/select_bluegene.c b/src/plugins/select/bluegene/select_bluegene.c
index e69786d0b79..89270341f25 100644
--- a/src/plugins/select/bluegene/select_bluegene.c
+++ b/src/plugins/select/bluegene/select_bluegene.c
@@ -2881,6 +2881,10 @@ extern int select_p_fail_cnode(struct step_record *step_ptr)
 		ba_mp = ba_inx2ba_mp(i);
 		xassert(ba_mp);
 
+		if (!ba_mp->cnode_err_bitmap)
+			ba_mp->cnode_err_bitmap =
+				bit_alloc(bg_conf->mp_cnode_cnt);
+
 		if (jobinfo->units_avail) {
 			bit_or(ba_mp->cnode_err_bitmap,
 			       step_jobinfo->units_used);
-- 
GitLab