mncc: Fix crash when memory allocation is failing
This commit is contained in:
parent
05bbec7227
commit
b549ddfb04
|
@ -2871,7 +2871,7 @@ static int _gsm48_lchan_modify(struct gsm_trans *trans, void *arg)
|
|||
{
|
||||
struct gsm_mncc *mode = arg;
|
||||
|
||||
return gsm48_lchan_modify(trans->conn->lchan, mode->lchan_mode);
|
||||
return gsm0808_assign_req(trans->conn, mode->lchan_mode, 1);
|
||||
}
|
||||
|
||||
static struct downstate {
|
||||
|
@ -3231,7 +3231,7 @@ static int gsm0408_rcv_cc(struct gsm_subscriber_connection *conn, struct msgb *m
|
|||
transaction_id, new_callref++);
|
||||
if (!trans) {
|
||||
DEBUGP(DCC, "No memory for trans.\n");
|
||||
rc = gsm48_tx_simple(trans->conn,
|
||||
rc = gsm48_tx_simple(conn,
|
||||
GSM48_PDISC_CC | (transaction_id << 4),
|
||||
GSM48_MT_CC_RELEASE_COMPL);
|
||||
return -ENOMEM;
|
||||
|
|
Loading…
Reference in New Issue