pdch_ulc_get_node(): assert if ulc pointer is null

Make crah more obvious if this condition is reached.

Related: SYS#6231
Change-Id: I2689ceaf39009c5e708d5c72e41744658681c917
This commit is contained in:
Pau Espin Pedrol
2022-12-12 12:29:15 +01:00
parent 586ddda9bc
commit b5fa1aad7c

View File

@@ -71,6 +71,7 @@ struct pdch_ulc *pdch_ulc_alloc(struct gprs_rlcmac_pdch *pdch, void *ctx)
struct pdch_ulc_node *pdch_ulc_get_node(struct pdch_ulc *ulc, uint32_t fn)
{
OSMO_ASSERT(ulc);
struct rb_node *node = ulc->tree_root.rb_node;
struct pdch_ulc_node *it;
int res;