This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/15479 ) Change subject: mm_gb_fsm: unassign the llme when entering MM_IDLE ...................................................................... mm_gb_fsm: unassign the llme when entering MM_IDLE MM_IDLE means there is no known state to this MM. Change-Id: Ieb0d6cea828842763c13942fe1a63dd89399f799 --- M src/sgsn/gprs_mm_state_gb_fsm.c 1 file changed, 11 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved laforge: Looks good to me, but someone else must approve diff --git a/src/sgsn/gprs_mm_state_gb_fsm.c b/src/sgsn/gprs_mm_state_gb_fsm.c index 2056540..4e1ed48 100644 --- a/src/sgsn/gprs_mm_state_gb_fsm.c +++ b/src/sgsn/gprs_mm_state_gb_fsm.c @@ -1,6 +1,7 @@ #include <osmocom/core/tdef.h> #include <osmocom/sgsn/gprs_mm_state_gb_fsm.h> +#include <osmocom/sgsn/gprs_llc.h> #include <osmocom/sgsn/debug.h> #include <osmocom/sgsn/sgsn.h> @@ -16,6 +17,15 @@ #define mm_state_gb_fsm_state_chg(fi, NEXT_STATE) \ osmo_tdef_fsm_inst_state_chg(fi, NEXT_STATE, mm_state_gb_fsm_timeouts, sgsn->cfg.T_defs, -1) +static void st_mm_idle_on_enter(struct osmo_fsm_inst *fi, uint32_t prev_state) { + struct sgsn_mm_ctx *ctx = fi->priv; + + if (ctx->gb.llme) { + gprs_llgmm_unassign(ctx->gb.llme); + ctx->gb.llme = NULL; + } +} + static void st_mm_idle(struct osmo_fsm_inst *fi, uint32_t event, void *data) { switch(event) { @@ -59,6 +69,7 @@ [ST_MM_IDLE] = { .in_event_mask = X(E_MM_GPRS_ATTACH) | X(E_MM_PDU_RECEPTION), .out_state_mask = X(ST_MM_READY), + .onenter = st_mm_idle_on_enter, .name = "Idle", .action = st_mm_idle, }, -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/15479 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: Ieb0d6cea828842763c13942fe1a63dd89399f799 Gerrit-Change-Number: 15479 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis lazus <lynxis at fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at gnumonks.org> Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190912/5eeb5739/attachment.htm>