aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-05-04 20:58:48 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-04 20:59:46 +0200
commit3e8c520ad1da732af153758bb17469db8889347a (patch)
treeaa7b191ebdc62d7729b23e109e8c9fd244748b62
parentcacaa4a1616d7c0ea370ff197d816f706909bde5 (diff)
lapdm: Fix back-pointer from lapdm_entity to lapdm_channel
It seems that during all those years it has never been noted that the back-pointer from the lapdm_entity to the lapdm_channel was never initialized. Let's fix that. Change-Id: Iaca66cd6a2c9f315561e365b51163927868fc346
-rw-r--r--src/gsm/lapdm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index 6a16012b..ae21ccdf 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -169,8 +169,10 @@ void lapdm_entity_init(struct lapdm_entity *le, enum lapdm_mode mode, int t200)
void lapdm_channel_init(struct lapdm_channel *lc, enum lapdm_mode mode)
{
lapdm_entity_init(&lc->lapdm_acch, mode, 2);
+ lc->lapdm_acch.lapdm_ch = lc;
/* FIXME: this depends on chan type */
lapdm_entity_init(&lc->lapdm_dcch, mode, 1);
+ lc->lapdm_dcch.lapdm_ch = lc;
}
/*! flush and release all resoures in LAPDm entity */