mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-pcu.git
synced 2025-11-02 13:13:31 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user