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
Michael Black
OpenXG-RAN
Commits
9d644f24
Commit
9d644f24
authored
Jul 05, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed memory leak for unqueuing uci_inds
parent
6ddb49d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
20 deletions
+16
-20
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
+16
-20
No files found.
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
View file @
9d644f24
...
...
@@ -248,11 +248,7 @@ static void copy_dl_tti_req_to_dl_info(nr_downlink_indication_t *dl_info, nfapi_
for
(
int
j
=
0
;
j
<
num_dcis
;
j
++
)
{
nfapi_nr_dl_dci_pdu_t
*
dci_pdu_list
=
&
pdu_list
->
pdcch_pdu
.
pdcch_pdu_rel15
.
dci_pdu
[
j
];
int
num_bytes
=
dci_pdu_list
->
PayloadSizeBits
/
8
;
if
(
dci_pdu_list
->
PayloadSizeBits
%
8
>
0
)
{
num_bytes
++
;
}
int
num_bytes
=
(
dci_pdu_list
->
PayloadSizeBits
+
7
)
/
8
;
LOG_I
(
NR_PHY
,
"[%d, %d] PDCCH DCI (Payload) for rnti %x with PayloadSizeBits %d, num_bytes %d
\n
"
,
dl_tti_request
->
SFN
,
dl_tti_request
->
Slot
,
dci_pdu_list
->
RNTI
,
dci_pdu_list
->
PayloadSizeBits
,
num_bytes
);
for
(
int
k
=
0
;
k
<
num_bytes
;
k
++
)
...
...
@@ -332,11 +328,7 @@ static void copy_ul_dci_data_req_to_dl_info(nr_downlink_indication_t *dl_info, n
for
(
int
j
=
0
;
j
<
num_dci
;
j
++
)
{
nfapi_nr_dl_dci_pdu_t
*
dci_pdu_list
=
&
pdu_list
->
pdcch_pdu
.
pdcch_pdu_rel15
.
dci_pdu
[
j
];
int
num_bytes
=
dci_pdu_list
->
PayloadSizeBits
/
8
;
if
(
dci_pdu_list
->
PayloadSizeBits
%
8
>
0
)
{
num_bytes
++
;
}
int
num_bytes
=
(
dci_pdu_list
->
PayloadSizeBits
+
7
)
/
8
;
LOG_I
(
NR_PHY
,
"[%d, %d] ul_dci_req PDCCH DCI for rnti %x with PayloadSizeBits %d and num_bytes %d
\n
"
,
ul_dci_req
->
SFN
,
ul_dci_req
->
Slot
,
dci_pdu_list
->
RNTI
,
dci_pdu_list
->
PayloadSizeBits
,
num_bytes
);
for
(
int
k
=
0
;
k
<
num_bytes
;
k
++
)
...
...
@@ -371,19 +363,23 @@ static void copy_ul_tti_data_req_to_dl_info(nr_downlink_indication_t *dl_info, n
if
(
pdu_list
->
pdu_type
==
NFAPI_NR_UL_CONFIG_PUCCH_PDU_TYPE
)
{
nfapi_nr_uci_indication_t
*
uci_ind
=
unqueue
(
&
nr_uci_ind_queue
);
if
(
uci_ind
&&
uci_ind
->
num_ucis
>
0
)
if
(
uci_ind
)
{
uci_ind
->
sfn
=
ul_tti_req
->
SFN
;
uci_ind
->
slot
=
ul_tti_req
->
Slot
;
LOG_I
(
NR_MAC
,
"We have unqueued the previously filled uci_ind and updated the snf/slot to %d/%d.
\n
"
,
uci_ind
->
sfn
,
uci_ind
->
slot
);
NR_UL_IND_t
UL_INFO
=
{
.
uci_ind
=
*
uci_ind
,
};
send_nsa_standalone_msg
(
&
UL_INFO
,
uci_ind
->
header
.
message_id
);
if
(
uci_ind
->
num_ucis
>
0
)
{
uci_ind
->
sfn
=
ul_tti_req
->
SFN
;
uci_ind
->
slot
=
ul_tti_req
->
Slot
;
LOG_I
(
NR_MAC
,
"We have unqueued the previously filled uci_ind and updated the snf/slot to %d/%d.
\n
"
,
uci_ind
->
sfn
,
uci_ind
->
slot
);
NR_UL_IND_t
UL_INFO
=
{
.
uci_ind
=
*
uci_ind
,
};
send_nsa_standalone_msg
(
&
UL_INFO
,
uci_ind
->
header
.
message_id
);
}
free
(
uci_ind
->
uci_list
);
free
(
uci_ind
);
}
}
}
...
...
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