Fix the undefined res parameter if not defined K_RELEASE

Signed-off-by: Teodora Vladić <teodora.vladic@openairinterface.org>
Fixes: https://gitlab.eurecom.fr/oai/openairinterface5g/-/merge_requests/4144/diffs?commit_id=43433974aa48436a76d87a5b135b396f8d0f6ce7 ("fix(fhi72): Fix use-after-free bug in fhi_72 lib")
This commit is contained in:
Teodora Vladić
2026-05-29 13:25:52 +02:00
parent 747041990c
commit bd0bb79997

View File

@@ -374,7 +374,9 @@ int xran_fh_rx_prach_read_slot(PHY_VARS_gNB *gNB, ru_info_t *ru, int *frame, int
LOG_W(HW, "[%d.%d] Expected PRACH reception of scheduled slot %d\n", *frame, *slot, p.slot);
}
} else {
#if defined K_RELEASE
delNotifiedFIFO_elt(res);
#endif
return (0);
}
@@ -492,7 +494,9 @@ int xran_fh_rx_prach_read_slot(PHY_VARS_gNB *gNB, ru_info_t *ru, int *frame, int
// constant pace, but prach_l1rx_queue emptied as fast as possible,
// see rx_func()
DevAssert(success);
#if defined K_RELEASE
delNotifiedFIFO_elt(res);
#endif
return (0);
}
@@ -740,7 +744,9 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
} // sym_ind
} // ant_ind
} // vv_inf
#if defined K_RELEASE
delNotifiedFIFO_elt(res);
#endif
return (0);
}