From 67b4b9a017647b7d28343a352778920633ebf575 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Thu, 1 Jan 2009 03:46:11 +0000 Subject: Do not call rsl_chan_release directly but use the use_count of the lchan Call use_lchan early in allocate_loc_updating_req, do not directly call rsl_chan_release but go through channel alloc to take the use_count into account. --- include/openbsc/abis_rsl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/openbsc/abis_rsl.h') diff --git a/include/openbsc/abis_rsl.h b/include/openbsc/abis_rsl.h index a0e8cba62..e7fea8088 100644 --- a/include/openbsc/abis_rsl.h +++ b/include/openbsc/abis_rsl.h @@ -345,7 +345,6 @@ int rsl_chan_activate(struct gsm_bts *bts, u_int8_t chan_nr, u_int8_t ta); int rsl_chan_activate_tch_f(struct gsm_bts_trx_ts *ts); int rsl_chan_activate_sdcch(struct gsm_bts_trx_ts *ts); -int rsl_chan_release(struct gsm_lchan *lchan); int rsl_paging_cmd(struct gsm_bts *bts, u_int8_t paging_group, u_int8_t len, u_int8_t *ms_ident, u_int8_t chan_needed); int rsl_paging_cmd_imsi(struct gsm_bts *bts, u_int8_t chan_needed, const char *imsi_str); @@ -357,6 +356,7 @@ int abis_rsl_rcvmsg(struct msgb *msg); /* to be provided by external code */ int abis_rsl_sendmsg(struct msgb *msg); +int rsl_chan_release(struct gsm_lchan *lchan); #endif /* RSL_MT_H */ -- cgit v1.2.3