diff mbox

opensm/osm_helper.c: fix potential overrun of the array

Message ID 4C865419.9050005@mellanox.co.il (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Yevgeny Kliteynik Sept. 7, 2010, 3:02 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c
index 196d5aa..0233e70 100644
--- a/opensm/opensm/osm_helper.c
+++ b/opensm/opensm/osm_helper.c
@@ -148,7 +148,7 @@  static const char *ib_sm_method_str[] = {
 	"UNKNOWN"		/* 20 */
 };

-#define OSM_SM_METHOD_STR_UNKNOWN_VAL 0x21
+#define OSM_SM_METHOD_STR_UNKNOWN_VAL 0x20

 static const char *ib_sm_attr_str[] = {
 	"RESERVED",		/* 0 */