Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
lizhongxiao
OpenXG UE
Commits
1d88cb3b
Commit
1d88cb3b
authored
5 years ago
by
Dong Anyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Coverity Scan CID 300460 (Using uninitialized value fp->eutra_band when calling from_earfcn.)
parent
b53d3cb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
nfapi/oai_integration/nfapi_pnf.c
nfapi/oai_integration/nfapi_pnf.c
+1
-0
No files found.
nfapi/oai_integration/nfapi_pnf.c
View file @
1d88cb3b
...
@@ -540,6 +540,7 @@ int config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfap
...
@@ -540,6 +540,7 @@ int config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfap
}
}
if
(
req
->
nfapi_config
.
earfcn
.
tl
.
tag
==
NFAPI_NFAPI_EARFCN_TAG
)
{
if
(
req
->
nfapi_config
.
earfcn
.
tl
.
tag
==
NFAPI_NFAPI_EARFCN_TAG
)
{
fp
->
eutra_band
=
0
;
fp
->
dl_CarrierFreq
=
from_earfcn
(
fp
->
eutra_band
,
req
->
nfapi_config
.
earfcn
.
value
);
fp
->
dl_CarrierFreq
=
from_earfcn
(
fp
->
eutra_band
,
req
->
nfapi_config
.
earfcn
.
value
);
fp
->
ul_CarrierFreq
=
fp
->
dl_CarrierFreq
-
(
get_uldl_offset
(
fp
->
eutra_band
)
*
1e5
);
fp
->
ul_CarrierFreq
=
fp
->
dl_CarrierFreq
-
(
get_uldl_offset
(
fp
->
eutra_band
)
*
1e5
);
num_tlv
++
;
num_tlv
++
;
...
...
This diff is collapsed.
Click to expand it.
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