aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-06-29 22:05:25 +0200
committerHarald Welte <laforge@osmocom.org>2020-06-29 23:10:33 +0200
commit9fc4d5f4e25231fe4f175ebe5b136d4b27b8b321 (patch)
treea57aa5c068600cf492aadb3e881730ec5931f51b
parentbbd39359eb8e8fbc44efd760688374ee925708e5 (diff)
actually set the back-pointer from timeslot to line
'struct e1_ts' always had a back-pointer to the line it is part of, but apparently this was never initialized so far. Change-Id: I5e6c8189bf5aa4af26d6cd6c6d288a149ed7fa66
-rw-r--r--src/intf_line.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intf_line.c b/src/intf_line.c
index a1fbc0f..afe477d 100644
--- a/src/intf_line.c
+++ b/src/intf_line.c
@@ -98,6 +98,7 @@ e1_line_new(struct e1_intf *intf, void *drv_data)
line->drv_data = drv_data;
for (int i=0; i<32; i++) {
+ line->ts[i].line = line;
line->ts[i].id = i;
line->ts[i].fd = -1;
}