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:
Robert Schmidt
2024-11-29 09:15:03 +01:00
parent f1fb797ff6
commit dbfb806afa
@@ -727,6 +727,10 @@ static void _nr_rx_sdu(const module_id_t gnb_mod_idP,
timing_advance,
sduP,
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 (rssi > 0) {