aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-09-12 02:42:32 +0200
committerVadim Yanitskiy <axilirator@gmail.com>2019-09-12 22:59:31 +0200
commitb86e9260e8cabe34da36909e1491636d5f7c45a7 (patch)
tree86ad6a5bb0b09de83e40a5b8e81313dfe36b1e5f
parent3061e1d14a27cb3a25f6079b1a5834fe03864aff (diff)
osmo-bts-trx/scheduler: fix: check rc of osmo_ecu_frame_out()
Change-Id: I32d244f5ddef46c8b8719f5ec27b7456514d407a Fixes: CID#204005 (CID#204007), CID#204006 (CID#204004)
-rw-r--r--src/osmo-bts-trx/scheduler_trx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index 45fc7012..8b0c761c 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -1272,7 +1272,8 @@ bfi:
/* If there is an ECU active on this channel, use its output */
if (lchan->ecu_state) {
rc = osmo_ecu_frame_out(lchan->ecu_state, tch_data);
- goto compose_l1sap;
+ if (rc >= 0) /* Otherwise we send a BFI */
+ goto compose_l1sap;
}
switch (tch_mode) {
@@ -1485,7 +1486,8 @@ bfi:
/* If there is an ECU active on this channel, use its output */
if (lchan->ecu_state) {
rc = osmo_ecu_frame_out(lchan->ecu_state, tch_data);
- goto compose_l1sap;
+ if (rc >= 0) /* Otherwise we send a BFI */
+ goto compose_l1sap;
}
switch (tch_mode) {