Signed-off-by: Jim Foraker <[email protected]>
---
 opensm/osm_subnet.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/opensm/osm_subnet.c b/opensm/osm_subnet.c
index bb69a66..ddee955 100644
--- a/opensm/osm_subnet.c
+++ b/opensm/osm_subnet.c
@@ -1496,6 +1496,13 @@ int osm_subn_verify_config(IN osm_subn_opt_t * p_opts)
        }
 #endif
 
+       if (p_opts->m_key_protect_bits > 3) {
+               log_report(" Invalid Cached Option Value:"
+                          "m_key_protection_level = %u Setting to %u "
+                          "instead\n", p_opts->m_key_protect_bits, 2);
+               p_opts->m_key_protect_bits = 2;
+       }
+
        if (p_opts->root_guid_file != NULL) {
                FILE *root_file = fopen(p_opts->root_guid_file, "r");
                if (!root_file) {
-- 
1.7.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to