Message ID | 1464306409-7325-6-git-send-email-bill.fischofer@linaro.org |
---|---|
State | Accepted |
Commit | 50561f888fe01d866ed6abbc4c76ab9f85c15db5 |
Headers | show |
diff --git a/test/validation/traffic_mngr/traffic_mngr.c b/test/validation/traffic_mngr/traffic_mngr.c index e099083..bed2d2f 100644 --- a/test/validation/traffic_mngr/traffic_mngr.c +++ b/test/validation/traffic_mngr/traffic_mngr.c @@ -1374,7 +1374,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(-)