aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/l1_if.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-07-16 18:48:55 +0200
committerHarald Welte <laforge@gnumonks.org>2012-07-16 18:48:55 +0200
commit5a53eff4cb1ce11fa2ba1026dd52dce1e59a4b7b (patch)
tree131ff707dfbb57e97b74f50beb5911018bf112c3 /src/osmo-bts-sysmo/l1_if.c
parent990d1da8a4df2c8a2ec119eb3a7079c8a706f6fe (diff)
sysmobts L1: fix memory leaks for GPRS
we have to hand off the PH-RTS.ind to the PCU interface _before_ we allocate a response msgb/primitive.
Diffstat (limited to 'src/osmo-bts-sysmo/l1_if.c')
-rw-r--r--src/osmo-bts-sysmo/l1_if.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 3bc07433..51d410bf 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -405,6 +405,13 @@ static int handle_ph_readytosend_ind(struct femtol1_hdl *fl1,
/* actually transmit it */
goto tx;
break;
+ case GsmL1_Sapi_Pdtch:
+ case GsmL1_Sapi_Pacch:
+ return pcu_tx_rts_req(&trx->ts[rts_ind->u8Tn], 0,
+ rts_ind->u32Fn, rts_ind->u16Arfcn, rts_ind->u8BlockNbr);
+ case GsmL1_Sapi_Ptcch:
+ return pcu_tx_rts_req(&trx->ts[rts_ind->u8Tn], 1,
+ rts_ind->u32Fn, rts_ind->u16Arfcn, rts_ind->u8BlockNbr);
default:
break;
}
@@ -506,13 +513,6 @@ static int handle_ph_readytosend_ind(struct femtol1_hdl *fl1,
msgb_free(pp.oph.msg);
}
break;
- case GsmL1_Sapi_Pdtch:
- case GsmL1_Sapi_Pacch:
- return pcu_tx_rts_req(&trx->ts[rts_ind->u8Tn], 0,
- rts_ind->u32Fn, rts_ind->u16Arfcn, rts_ind->u8BlockNbr);
- case GsmL1_Sapi_Ptcch:
- return pcu_tx_rts_req(&trx->ts[rts_ind->u8Tn], 1,
- rts_ind->u32Fn, rts_ind->u16Arfcn, rts_ind->u8BlockNbr);
case GsmL1_Sapi_Prach:
goto empty_frame;
break;