diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2012-12-25 23:15:50 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-26 10:48:01 +0100 |
commit | e523392c2c091f53c18edf2086d6966eec38561f (patch) | |
tree | c74facf8897c5513adfa95e710d8388cfe170bad /tests/lapd/lapd_test.ok | |
parent | 0167596c2bf19102eac8a69f5066eedbae72a167 (diff) |
lapd: Check in rslms_rx_rll() if lapdm context was initialized earlier
This was found while implementing handover on a sysmobts. When we
receive a channel release request for a channel that was never really
activated (set_lapdm_context() was not called) we segfault in
lapd_recv_dlsap().
We now return early with -EINVAL in rslms_rx_rll() if we receive a
message that assumes set_lapdm_context() was already called.
These are:
* RSL_MT_UNIT_DATA_REQ
* RSL_MT_DATA_REQ
* RSL_MT_SUSP_REQ
* RSL_MT_REL_REQ
A test case was added to trigger the issue.
Diffstat (limited to 'tests/lapd/lapd_test.ok')
-rw-r--r-- | tests/lapd/lapd_test.ok | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lapd/lapd_test.ok b/tests/lapd/lapd_test.ok index d67a0a80..f1b990ea 100644 --- a/tests/lapd/lapd_test.ok +++ b/tests/lapd/lapd_test.ok @@ -17,4 +17,5 @@ Sending back to BTS ms_to_bts_l1_cb: MS(us) -> BTS prim message bts_to_ms_tx_cb: MS->BTS(us) message 14 BTS: Verifying dummy message. +I test RF channel release of an unestablished channel. Success. |