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
wangjie
OpenXG-RAN
Commits
cbe8b934
Commit
cbe8b934
authored
Oct 20, 2020
by
Ding Yumei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix segmentation fault(mac head error)
parent
51b12592
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+8
-0
No files found.
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
cbe8b934
...
...
@@ -1146,6 +1146,10 @@ parse_ulsch_header(unsigned char *mac_header,
tb_length
,
length
,
mac_header_ptr
-
mac_header
);
if
(
num_sdus
>=
NB_RB_MAX
){
LOG_E
(
MAC
,
"parse_ulsch_header: num_sdus(%d) reach max
\n
"
,
num_sdus
);
return
NULL
;
}
rx_lcids
[
num_sdus
]
=
lcid
;
rx_lengths
[
num_sdus
]
=
length
;
num_sdus
++
;
...
...
@@ -1153,6 +1157,10 @@ parse_ulsch_header(unsigned char *mac_header,
if
(
lcid
==
SHORT_PADDING
)
{
mac_header_ptr
++
;
}
else
{
if
(
num_ces
>=
MAX_NUM_CE
){
LOG_E
(
MAC
,
"parse_ulsch_header: num_ces(%d) reach max
\n
"
,
num_ces
);
return
NULL
;
}
rx_ces
[
num_ces
]
=
lcid
;
num_ces
++
;
mac_header_ptr
++
;
...
...
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