rlcmac: Fix null ptr access in dl_tbf object

Fixes: Coverity CID#310022
Change-Id: I3817d9e77a440682fa2c538e0fbee295ffdbcfff
This commit is contained in:
Pau Espin 2023-02-21 11:30:44 +01:00
parent f15ee0daa5
commit 96fe992644
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ static int gprs_rlcmac_handle_gprs_dl_data_block(const struct osmo_gprs_rlcmac_p
dl_tbf = gprs_rlcmac_find_dl_tbf_by_tfi(rlc_dec.tfi);
if (!dl_tbf) {
LOGPTBFDL(dl_tbf, LOGL_INFO, "Rx DL data for unknown dl_tfi=%u\n", data_hdr->tfi);
LOGRLCMAC(LOGL_INFO, "Rx DL data for unknown dl_tfi=%u\n", data_hdr->tfi);
return -ENOENT;
}
LOGPTBFDL(dl_tbf, LOGL_DEBUG, "Rx new DL data\n");