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
2e389d61
Commit
2e389d61
authored
Jun 18, 2018
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: bzero was not called if allocating memory
parent
c5c66eeb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
openair2/LAYER2/MAC/main.c
openair2/LAYER2/MAC/main.c
+11
-11
No files found.
openair2/LAYER2/MAC/main.c
View file @
2e389d61
...
@@ -68,17 +68,17 @@ void mac_top_init_eNB(void)
...
@@ -68,17 +68,17 @@ void mac_top_init_eNB(void)
RC
.
nb_macrlc_inst
*
sizeof
(
eNB_MAC_INST
*
),
RC
.
nb_macrlc_inst
*
sizeof
(
eNB_MAC_INST
*
),
RC
.
nb_macrlc_inst
,
sizeof
(
eNB_MAC_INST
));
RC
.
nb_macrlc_inst
,
sizeof
(
eNB_MAC_INST
));
for
(
i
=
0
;
i
<
RC
.
nb_macrlc_inst
;
i
++
)
{
for
(
i
=
0
;
i
<
RC
.
nb_macrlc_inst
;
i
++
)
{
if
(
RC
.
mac
[
i
]
==
NULL
)
if
(
RC
.
mac
[
i
]
==
NULL
)
{
RC
.
mac
[
i
]
=
(
eNB_MAC_INST
*
)
malloc16
(
sizeof
(
eNB_MAC_INST
));
RC
.
mac
[
i
]
=
(
eNB_MAC_INST
*
)
malloc16
(
sizeof
(
eNB_MAC_INST
));
AssertFatal
(
RC
.
mac
!=
NULL
,
AssertFatal
(
RC
.
mac
[
i
]
!=
NULL
,
"can't ALLOCATE %zu Bytes for %d eNB_MAC_INST with size %zu
\n
"
,
"can't ALLOCATE %zu Bytes for %d eNB_MAC_INST with size %zu
\n
"
,
RC
.
nb_macrlc_inst
*
sizeof
(
eNB_MAC_INST
*
),
RC
.
nb_macrlc_inst
*
sizeof
(
eNB_MAC_INST
*
),
RC
.
nb_macrlc_inst
,
sizeof
(
eNB_MAC_INST
));
RC
.
nb_macrlc_inst
,
sizeof
(
eNB_MAC_INST
));
LOG_D
(
MAC
,
LOG_D
(
MAC
,
"[MAIN] ALLOCATE %zu Bytes for %d eNB_MAC_INST @ %p
\n
"
,
"[MAIN] ALLOCATE %zu Bytes for %d eNB_MAC_INST @ %p
\n
"
,
sizeof
(
eNB_MAC_INST
),
RC
.
nb_macrlc_inst
,
RC
.
mac
);
sizeof
(
eNB_MAC_INST
),
RC
.
nb_macrlc_inst
,
RC
.
mac
);
if
(
RC
.
mac
[
i
]
==
NULL
)
bzero
(
RC
.
mac
[
i
],
sizeof
(
eNB_MAC_INST
));
bzero
(
RC
.
mac
[
i
],
sizeof
(
eNB_MAC_INST
));
// bzero(RC.mac[i], sizeof(eNB_MAC_INST));
}
RC
.
mac
[
i
]
->
Mod_id
=
i
;
RC
.
mac
[
i
]
->
Mod_id
=
i
;
for
(
j
=
0
;
j
<
MAX_NUM_CCs
;
j
++
)
{
for
(
j
=
0
;
j
<
MAX_NUM_CCs
;
j
++
)
{
RC
.
mac
[
i
]
->
DL_req
[
j
].
dl_config_request_body
.
RC
.
mac
[
i
]
->
DL_req
[
j
].
dl_config_request_body
.
...
...
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