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
spbro
OpenXG-RAN
Commits
b215a60a
Commit
b215a60a
authored
May 17, 2024
by
Rúben Soares da Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak related to fapi_phy_api_msg fapi_msg
parent
92491310
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
nfapi/oai_integration/aerial/fapi_nvIPC.c
nfapi/oai_integration/aerial/fapi_nvIPC.c
+10
-10
No files found.
nfapi/oai_integration/aerial/fapi_nvIPC.c
View file @
b215a60a
...
@@ -116,15 +116,15 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
...
@@ -116,15 +116,15 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
// unpack FAPI messages and handle them
// unpack FAPI messages and handle them
if
(
vnf_config
!=
0
)
{
if
(
vnf_config
!=
0
)
{
// first, unpack the header
// first, unpack the header
fapi_phy_api_msg
*
fapi_msg
=
calloc
(
1
,
sizeof
(
fapi_phy_api_msg
))
;
fapi_phy_api_msg
fapi_msg
;
if
(
!
(
pull8
(
&
pReadPackedMessage
,
&
fapi_msg
->
num_msg
,
end
)
&&
pull8
(
&
pReadPackedMessage
,
&
fapi_msg
->
opaque_handle
,
end
)
if
(
!
(
pull8
(
&
pReadPackedMessage
,
&
fapi_msg
.
num_msg
,
end
)
&&
pull8
(
&
pReadPackedMessage
,
&
fapi_msg
.
opaque_handle
,
end
)
&&
pull16
(
&
pReadPackedMessage
,
&
fapi_msg
->
message_id
,
end
)
&&
pull16
(
&
pReadPackedMessage
,
&
fapi_msg
.
message_id
,
end
)
&&
pull32
(
&
pReadPackedMessage
,
&
fapi_msg
->
message_length
,
end
)))
{
&&
pull32
(
&
pReadPackedMessage
,
&
fapi_msg
.
message_length
,
end
)))
{
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"FAPI message header unpack failed
\n
"
);
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"FAPI message header unpack failed
\n
"
);
return
-
1
;
return
-
1
;
}
}
switch
(
fapi_msg
->
message_id
)
{
switch
(
fapi_msg
.
message_id
)
{
case
NFAPI_NR_PHY_MSG_TYPE_PARAM_RESPONSE
:
case
NFAPI_NR_PHY_MSG_TYPE_PARAM_RESPONSE
:
if
(
vnf_config
->
nr_param_resp
)
{
if
(
vnf_config
->
nr_param_resp
)
{
...
@@ -210,8 +210,8 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
...
@@ -210,8 +210,8 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
case
NFAPI_NR_PHY_MSG_TYPE_RX_DATA_INDICATION
:
{
case
NFAPI_NR_PHY_MSG_TYPE_RX_DATA_INDICATION
:
{
nfapi_nr_rx_data_indication_t
ind
;
nfapi_nr_rx_data_indication_t
ind
;
ind
.
header
.
message_id
=
fapi_msg
->
message_id
;
ind
.
header
.
message_id
=
fapi_msg
.
message_id
;
ind
.
header
.
message_length
=
fapi_msg
->
message_length
;
ind
.
header
.
message_length
=
fapi_msg
.
message_length
;
aerial_unpack_nr_rx_data_indication
(
aerial_unpack_nr_rx_data_indication
(
&
pReadPackedMessage
,
&
pReadPackedMessage
,
end
,
end
,
...
@@ -228,8 +228,8 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
...
@@ -228,8 +228,8 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
case
NFAPI_NR_PHY_MSG_TYPE_CRC_INDICATION
:
{
case
NFAPI_NR_PHY_MSG_TYPE_CRC_INDICATION
:
{
nfapi_nr_crc_indication_t
crc_ind
;
nfapi_nr_crc_indication_t
crc_ind
;
crc_ind
.
header
.
message_id
=
fapi_msg
->
message_id
;
crc_ind
.
header
.
message_id
=
fapi_msg
.
message_id
;
crc_ind
.
header
.
message_length
=
fapi_msg
->
message_length
;
crc_ind
.
header
.
message_length
=
fapi_msg
.
message_length
;
aerial_unpack_nr_crc_indication
(
&
pReadPackedMessage
,
aerial_unpack_nr_crc_indication
(
&
pReadPackedMessage
,
end
,
end
,
&
crc_ind
,
&
crc_ind
,
...
@@ -279,7 +279,7 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
...
@@ -279,7 +279,7 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
}
}
default:
{
default:
{
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s P5 Unknown message ID %d
\n
"
,
__FUNCTION__
,
fapi_msg
->
message_id
);
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s P5 Unknown message ID %d
\n
"
,
__FUNCTION__
,
fapi_msg
.
message_id
);
break
;
break
;
}
}
...
...
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