Add check for non existing lchan at tch_frame_down()
Traffic cannot sent to BTS, if there is (currently) no logical channel associated with the transaction. This happens, if TCH traffic is received from upper layer, but there is no lchan available before completing immediate assignment, handover or assignment process. [hfreyther: The code has not been moved to tch_frame_down but the issue looks similiar]
This commit is contained in:
parent
4c97435b35
commit
93e795c1fd
|
@ -3005,6 +3005,10 @@ int mncc_tx_to_cc(struct gsm_network *net, int msg_type, void *arg)
|
|||
LOGP(DMNCC, LOGL_NOTICE, "TCH frame for trans without conn\n");
|
||||
return 0;
|
||||
}
|
||||
if (!trans->conn->lchan) {
|
||||
LOGP(DMNCC, LOGL_NOTICE, "TCH frame for trans without lchan\n");
|
||||
return 0;
|
||||
}
|
||||
if (trans->conn->lchan->type != GSM_LCHAN_TCH_F
|
||||
&& trans->conn->lchan->type != GSM_LCHAN_TCH_H) {
|
||||
/* This should be LOGL_ERROR or NOTICE, but
|
||||
|
|
Loading…
Reference in New Issue