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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
2a03d793
Commit
2a03d793
authored
Mar 27, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding a check on pusch_Config to avoid segfault
parent
e8f07008
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+4
-3
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
2a03d793
...
@@ -651,7 +651,8 @@ int nr_config_pusch_pdu(NR_UE_MAC_INST_t *mac,
...
@@ -651,7 +651,8 @@ int nr_config_pusch_pdu(NR_UE_MAC_INST_t *mac,
pusch_config_pdu
->
scid
=
0
;
pusch_config_pdu
->
scid
=
0
;
pusch_config_pdu
->
data_scrambling_id
=
mac
->
physCellId
;
pusch_config_pdu
->
data_scrambling_id
=
mac
->
physCellId
;
if
(
pusch_Config
->
dataScramblingIdentityPUSCH
if
(
pusch_Config
&&
pusch_Config
->
dataScramblingIdentityPUSCH
&&
rnti_type
==
TYPE_C_RNTI_
&&
rnti_type
==
TYPE_C_RNTI_
&&
!
(
dci_format
==
NR_UL_DCI_FORMAT_0_0
&&
ss_type
==
NR_SearchSpace__searchSpaceType_PR_common
))
&&
!
(
dci_format
==
NR_UL_DCI_FORMAT_0_0
&&
ss_type
==
NR_SearchSpace__searchSpaceType_PR_common
))
pusch_config_pdu
->
data_scrambling_id
=
*
pusch_Config
->
dataScramblingIdentityPUSCH
;
pusch_config_pdu
->
data_scrambling_id
=
*
pusch_Config
->
dataScramblingIdentityPUSCH
;
...
@@ -710,8 +711,8 @@ int nr_config_pusch_pdu(NR_UE_MAC_INST_t *mac,
...
@@ -710,8 +711,8 @@ int nr_config_pusch_pdu(NR_UE_MAC_INST_t *mac,
}
}
/* FREQ_HOPPING_FLAG */
/* FREQ_HOPPING_FLAG */
if
(
(
pusch_Config
!=
NULL
)
if
(
pusch_Config
&&
(
pusch_Config
->
frequencyHopping
!=
NULL
)
&&
pusch_Config
->
frequencyHopping
&&
(
pusch_Config
->
resourceAllocation
!=
NR_PUSCH_Config__resourceAllocation_resourceAllocationType0
))
{
&&
(
pusch_Config
->
resourceAllocation
!=
NR_PUSCH_Config__resourceAllocation_resourceAllocationType0
))
{
pusch_config_pdu
->
frequency_hopping
=
dci
->
frequency_hopping_flag
.
val
;
pusch_config_pdu
->
frequency_hopping
=
dci
->
frequency_hopping_flag
.
val
;
}
}
...
...
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