[ofa-general] [PATCH] opensm: fixing coredump in QoS policy pkey validation
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Tue Dec 11 07:36:43 PST 2007
Fixing segmentation fault in validating pkeys in QoS policy
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
opensm/opensm/osm_qos_policy.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opensm/opensm/osm_qos_policy.c b/opensm/opensm/osm_qos_policy.c
index f4fb0d3..544fbb4 100644
--- a/opensm/opensm/osm_qos_policy.c
+++ b/opensm/opensm/osm_qos_policy.c
@@ -900,8 +900,8 @@ int osm_qos_policy_validate(osm_qos_policy_t * p_qos_policy,
*/
for (j = 0; j < p_qos_match_rule->pkey_range_len; j++) {
- for ( pkey_64 = p_qos_match_rule->pkey_range_arr[i][0];
- pkey_64 <= p_qos_match_rule->pkey_range_arr[i][1];
+ for ( pkey_64 = p_qos_match_rule->pkey_range_arr[j][0];
+ pkey_64 <= p_qos_match_rule->pkey_range_arr[j][1];
pkey_64++) {
pkey = cl_hton16((uint16_t)(pkey_64 & 0x7fff));
p_prtn = (osm_prtn_t *)cl_qmap_get(
--
1.5.1.4
More information about the general
mailing list