gsm_04_11: Handle OOM same as expired and clean the message.

This commit is contained in:
Holger Hans Peter Freyther 2010-06-10 18:20:54 +08:00
parent 0afa044c09
commit ca5702a5c6
1 changed files with 1 additions and 3 deletions

View File

@ -1160,12 +1160,10 @@ static int paging_cb_send_sms(unsigned int hooknum, unsigned int event,
rc = rll_establish(lchan, UM_SAPI_SMS, rll_ind_cb, sms);
break;
case GSM_PAGING_EXPIRED:
case GSM_PAGING_OOM:
sms_free(sms);
rc = -ETIMEDOUT;
break;
default:
rc = -EINVAL;
break;
}
return rc;