[ofa-general] [PATCH 1/2] opensm/osm_qos_policy.c: Use proper size in malloc in osm_qos_policy_vlarb_scope_create
Hal Rosenstock
hnrose at comcast.net
Wed Jul 15 04:58:35 PDT 2009
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
opensm/opensm/osm_qos_policy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/opensm/osm_qos_policy.c b/opensm/opensm/osm_qos_policy.c
index 094fef2..2002fd1 100644
--- a/opensm/opensm/osm_qos_policy.c
+++ b/opensm/opensm/osm_qos_policy.c
@@ -192,7 +192,7 @@ void osm_qos_policy_port_group_destroy(osm_qos_port_group_t * p)
osm_qos_vlarb_scope_t *osm_qos_policy_vlarb_scope_create()
{
osm_qos_vlarb_scope_t *p =
- (osm_qos_vlarb_scope_t *) malloc(sizeof(osm_qos_sl2vl_scope_t));
+ (osm_qos_vlarb_scope_t *) malloc(sizeof(osm_qos_vlarb_scope_t));
if (!p)
return NULL;
--
1.5.6.4
More information about the general
mailing list