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
b01bab0f
Commit
b01bab0f
authored
Mar 01, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue(RX: data buffer free)
parent
9dc50e6c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
nfapi/oai_integration/nfapi_vnf.c
nfapi/oai_integration/nfapi_vnf.c
+6
-3
openair2/PHY_INTERFACE/IF_Module.c
openair2/PHY_INTERFACE/IF_Module.c
+1
-1
No files found.
nfapi/oai_integration/nfapi_vnf.c
View file @
b01bab0f
...
@@ -672,9 +672,12 @@ int phy_rx_indication(struct nfapi_vnf_p7_config* config, nfapi_rx_indication_t*
...
@@ -672,9 +672,12 @@ int phy_rx_indication(struct nfapi_vnf_p7_config* config, nfapi_rx_indication_t*
memcpy
(
dest_pdu
,
src_pdu
,
sizeof
(
*
src_pdu
));
memcpy
(
dest_pdu
,
src_pdu
,
sizeof
(
*
src_pdu
));
// DJP - TODO FIXME - intentional memory leak
// DJP - TODO FIXME - intentional memory leak
if
(
dest_pdu
->
rx_indication_rel8
.
length
>
0
){
dest_pdu
->
data
=
malloc
(
dest_pdu
->
rx_indication_rel8
.
length
);
dest_pdu
->
data
=
malloc
(
dest_pdu
->
rx_indication_rel8
.
length
);
memcpy
(
dest_pdu
->
data
,
src_pdu
->
data
,
dest_pdu
->
rx_indication_rel8
.
length
);
memcpy
(
dest_pdu
->
data
,
src_pdu
->
data
,
dest_pdu
->
rx_indication_rel8
.
length
);
}
else
{
dest_pdu
->
data
=
NULL
;
}
LOG_D
(
PHY
,
"%s() NFAPI SFN/SF:%d PDUs:%d [PDU:%d] handle:%d rnti:%04x length:%d offset:%d ul_cqi:%d ta:%d data:%p
\n
"
,
LOG_D
(
PHY
,
"%s() NFAPI SFN/SF:%d PDUs:%d [PDU:%d] handle:%d rnti:%04x length:%d offset:%d ul_cqi:%d ta:%d data:%p
\n
"
,
__FUNCTION__
,
__FUNCTION__
,
...
...
openair2/PHY_INTERFACE/IF_Module.c
View file @
b01bab0f
...
@@ -286,10 +286,10 @@ void handle_ulsch(UL_IND_t *UL_info) {
...
@@ -286,10 +286,10 @@ void handle_ulsch(UL_IND_t *UL_info) {
UL_RCC_INFO
.
rx_ind
[
k
].
rx_indication_body
.
rx_pdu_list
[
i
].
rx_indication_rel8
.
timing_advance
,
UL_RCC_INFO
.
rx_ind
[
k
].
rx_indication_body
.
rx_pdu_list
[
i
].
rx_indication_rel8
.
timing_advance
,
UL_RCC_INFO
.
rx_ind
[
k
].
rx_indication_body
.
rx_pdu_list
[
i
].
rx_indication_rel8
.
ul_cqi
);
UL_RCC_INFO
.
rx_ind
[
k
].
rx_indication_body
.
rx_pdu_list
[
i
].
rx_indication_rel8
.
ul_cqi
);
}
}
break
;
if
(
UL_RCC_INFO
.
rx_ind
[
k
].
rx_indication_body
.
rx_pdu_list
[
i
].
data
!=
NULL
){
if
(
UL_RCC_INFO
.
rx_ind
[
k
].
rx_indication_body
.
rx_pdu_list
[
i
].
data
!=
NULL
){
free
(
UL_RCC_INFO
.
rx_ind
[
k
].
rx_indication_body
.
rx_pdu_list
[
i
].
data
);
free
(
UL_RCC_INFO
.
rx_ind
[
k
].
rx_indication_body
.
rx_pdu_list
[
i
].
data
);
}
}
break
;
}
//if (UL_info->crc_ind.crc_pdu_list[j].rx_ue_information.rnti == UL_info->rx_ind.rx_pdu_list[i].rx_ue_information.rnti)
}
//if (UL_info->crc_ind.crc_pdu_list[j].rx_ue_information.rnti == UL_info->rx_ind.rx_pdu_list[i].rx_ue_information.rnti)
}
// for (j=0;j<UL_info->crc_ind.crc_indication_body.number_of_crcs;j++)
}
// for (j=0;j<UL_info->crc_ind.crc_indication_body.number_of_crcs;j++)
}
// for (i=0;i<UL_info->rx_ind.number_of_pdus;i++)
}
// for (i=0;i<UL_info->rx_ind.number_of_pdus;i++)
...
...
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