From 4b3fe162005de9fe7dd451de4da9095c5c15ce83 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 12 Dec 2021 16:21:16 +0300 Subject: oml: assign unique names to 'struct tlv_parsed' chunks Change-Id: Ie248d2a65a11da914324a7e65b767b894ed8644a --- src/common/oml.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/oml.c b/src/common/oml.c index c8819c92..724e4f81 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -580,6 +580,7 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg) /* merge existing BTS attributes with new attributes */ tp_merged = osmo_tlvp_copy(bts->mo.nm_attr, bts); + talloc_set_name_const(tp_merged, "oml_bts_attr"); osmo_tlvp_merge(tp_merged, &tp); /* Ask BTS driver to validate new merged attributes */ @@ -737,6 +738,7 @@ static int oml_rx_set_radio_attr(struct gsm_bts_trx *trx, struct msgb *msg) /* merge existing TRX attributes with new attributes */ tp_merged = osmo_tlvp_copy(trx->mo.nm_attr, trx); + talloc_set_name_const(tp_merged, "oml_trx_attr"); osmo_tlvp_merge(tp_merged, &tp); /* Ask BTS driver to validate new merged attributes */ @@ -951,6 +953,7 @@ static int oml_rx_set_chan_attr(struct gsm_bts_trx_ts *ts, struct msgb *msg) /* merge existing CHAN attributes with new attributes */ tp_merged = osmo_tlvp_copy(ts->mo.nm_attr, ts->trx); + talloc_set_name_const(tp_merged, "oml_chan_attr"); osmo_tlvp_merge(tp_merged, &tp); /* Call into BTS driver to check attribute values */ @@ -1395,6 +1398,7 @@ static int oml_ipa_set_attr(struct gsm_bts *bts, struct msgb *msg) /* Success: replace old MO attributes with new */ /* merge existing MO attributes with new attributes */ tp_merged = osmo_tlvp_copy(mo->nm_attr, bts); + talloc_set_name_const(tp_merged, "oml_ipa_attr"); osmo_tlvp_merge(tp_merged, &tp); talloc_free(mo->nm_attr); mo->nm_attr = tp_merged; -- cgit v1.2.3