Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
22a0c25b
Commit
22a0c25b
authored
Mar 11, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid rlc am segfualt issue
parent
cd4f8c7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.c
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.c
+7
-1
No files found.
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.c
View file @
22a0c25b
...
@@ -940,7 +940,7 @@ rlc_am_rx_check_all_byte_segments(
...
@@ -940,7 +940,7 @@ rlc_am_rx_check_all_byte_segments(
rlc_am_pdu_info_t
*
pdu_info_p
=
&
((
rlc_am_rx_pdu_management_t
*
)(
tb_pP
->
data
))
->
pdu_info
;
rlc_am_pdu_info_t
*
pdu_info_p
=
&
((
rlc_am_rx_pdu_management_t
*
)(
tb_pP
->
data
))
->
pdu_info
;
mem_block_t
*
cursor_p
=
NULL
;
mem_block_t
*
cursor_p
=
NULL
;
mem_block_t
*
first_cursor_p
=
NULL
;
mem_block_t
*
first_cursor_p
=
NULL
;
rlc_sn_t
sn
=
pdu_info_p
->
sn
;
rlc_
u
sn_t
sn
=
pdu_info_p
->
sn
;
sdu_size_t
next_waited_so
;
sdu_size_t
next_waited_so
;
sdu_size_t
last_end_so
;
sdu_size_t
last_end_so
;
...
@@ -971,6 +971,9 @@ rlc_am_rx_check_all_byte_segments(
...
@@ -971,6 +971,9 @@ rlc_am_rx_check_all_byte_segments(
// the so field of the first PDU should be 0
// the so field of the first PDU should be 0
//cursor_p = list.head;
//cursor_p = list.head;
//we start from the first stored PDU segment of this SN
//we start from the first stored PDU segment of this SN
if
(
cursor_p
->
data
==
NULL
){
return
;
}
pdu_info_p
=
&
((
rlc_am_rx_pdu_management_t
*
)(
cursor_p
->
data
))
->
pdu_info
;
pdu_info_p
=
&
((
rlc_am_rx_pdu_management_t
*
)(
cursor_p
->
data
))
->
pdu_info
;
// if the first segment does not have SO = 0 then no need to continue
// if the first segment does not have SO = 0 then no need to continue
...
@@ -987,6 +990,9 @@ rlc_am_rx_check_all_byte_segments(
...
@@ -987,6 +990,9 @@ rlc_am_rx_check_all_byte_segments(
while
(
cursor_p
->
next
!=
NULL
)
{
while
(
cursor_p
->
next
!=
NULL
)
{
//msg("rlc_am_rx_check_all_byte_segments(%d) @4\n",sn);
//msg("rlc_am_rx_check_all_byte_segments(%d) @4\n",sn);
cursor_p
=
cursor_p
->
next
;
cursor_p
=
cursor_p
->
next
;
if
(
cursor_p
->
data
==
NULL
){
return
;
}
pdu_info_p
=
&
((
rlc_am_rx_pdu_management_t
*
)(
cursor_p
->
data
))
->
pdu_info
;
pdu_info_p
=
&
((
rlc_am_rx_pdu_management_t
*
)(
cursor_p
->
data
))
->
pdu_info
;
if
(
pdu_info_p
->
sn
==
sn
)
{
if
(
pdu_info_p
->
sn
==
sn
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment