diff options
author | Max <msuraev@sysmocom.de> | 2016-04-21 18:55:09 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-04-29 13:03:35 +0200 |
commit | ed494443cc1e9732b43ef99cccf187d17ac931ef (patch) | |
tree | 9022dcd7b4e96f67d188501a9c664a1fd331e7d9 /include | |
parent | b61850248adbf717eb323d9ce7a17a817c302544 (diff) |
Ensure TRX invariant
There is implicit invariant in trx_phy_instance() which is actively used
by various hw-specific implementations to get TRX's phy instance. Let's
make sure there's explicit assertion for this because there's been
segfaults in the past related to it.
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/phy_link.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmo-bts/phy_link.h b/include/osmo-bts/phy_link.h index a559aa3e..edc6cc09 100644 --- a/include/osmo-bts/phy_link.h +++ b/include/osmo-bts/phy_link.h @@ -125,6 +125,7 @@ void phy_user_statechg_notif(struct phy_instance *pinst, enum phy_link_state lin static inline struct phy_instance *trx_phy_instance(struct gsm_bts_trx *trx) { + OSMO_ASSERT(trx); return trx->role_bts.l1h; } |