Scheduler: Avoid out-of-bounds read/write
The scheduler might receive PUSCH data when it does not expect it. Handle this case.
This commit is contained in:
@@ -727,6 +727,10 @@ static void _nr_rx_sdu(const module_id_t gnb_mod_idP,
|
|||||||
timing_advance,
|
timing_advance,
|
||||||
sduP,
|
sduP,
|
||||||
rssi);
|
rssi);
|
||||||
|
if (harq_pid < 0) {
|
||||||
|
LOG_E(NR_MAC, "UE %04x received ULSCH when feedback UL HARQ %d (unexpected ULSCH transmission)\n", rntiP, harq_pid);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// if not missed detection (10dB threshold for now)
|
// if not missed detection (10dB threshold for now)
|
||||||
if (rssi > 0) {
|
if (rssi > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user