Message ID | 1464275685-18426-7-git-send-email-bill.fischofer@linaro.org |
---|---|
State | Superseded |
Headers | show |
diff --git a/test/validation/traffic_mngr/traffic_mngr.c b/test/validation/traffic_mngr/traffic_mngr.c index 82d74db..da0fac5 100644 --- a/test/validation/traffic_mngr/traffic_mngr.c +++ b/test/validation/traffic_mngr/traffic_mngr.c @@ -1376,7 +1376,7 @@ static tm_node_desc_t *create_tm_node(odp_tm_t odp_tm, } /* Now connect this node to the lower level "parent" node. */ - if (level == 0) + if (level == 0 || !parent_node_desc) parent_node = ODP_TM_ROOT; else parent_node = parent_node_desc->node;
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> --- test/validation/traffic_mngr/traffic_mngr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)