fix segfault in CHAN RQD log message

This commit is contained in:
Harald Welte (local) 2009-12-27 13:48:09 +01:00 committed by Harald Welte
parent 91b603db57
commit 2f5df85c26
1 changed files with 2 additions and 2 deletions

View File

@ -1270,8 +1270,8 @@ static int rsl_rx_chan_rqd(struct msgb *msg)
/* check availability / allocate channel */
lchan = lchan_alloc(bts, lctype);
if (!lchan) {
LOGP(DRSL, LOGL_NOTICE, "%s CHAN RQD: no resources for %s 0x%x\n",
gsm_ts_name(lchan->ts), gsm_lchan_name(lctype), rqd_ref->ra);
LOGP(DRSL, LOGL_NOTICE, "BTS %d CHAN RQD: no resources for %s 0x%x\n",
msg->lchan->ts->trx->bts->nr, gsm_lchan_name(lctype), rqd_ref->ra);
counter_inc(bts->network->stats.chreq.no_channel);
/* FIXME: send some kind of reject ?!? */
return -ENOMEM;