[PATCH] libosmocore[master]: lapdm: Fix back-pointer from lapdm_entity to lapdm_channel

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri May 4 19:00:58 UTC 2018


Review at  https://gerrit.osmocom.org/8034

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
---
M src/gsm/lapdm.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/34/8034/1

diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index 6a16012..ae21ccd 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -169,8 +169,10 @@
 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 */

-- 
To view, visit https://gerrit.osmocom.org/8034
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaca66cd6a2c9f315561e365b51163927868fc346
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list