diff options
author | Denis Kenzior <denkenz@gmail.com> | 2013-10-17 15:24:56 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-10-17 15:25:52 -0500 |
commit | 0aeeaefdce05b599c051a8233b89cdfcc9fe2dfe (patch) | |
tree | 32659f56cec51d44a3cb879ba3a7bef9b06b96c8 | |
parent | 2d925003a45eb9ef3aabe13dc70dd76a042efed3 (diff) |
mbm: Fix segfault with hot-plugged MD300 modem
-rw-r--r-- | plugins/mbm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mbm.c b/plugins/mbm.c index 328833fd..7d6f92ab 100644 --- a/plugins/mbm.c +++ b/plugins/mbm.c @@ -262,6 +262,10 @@ static void emrdy_query(gboolean ok, GAtResult *result, gpointer user_data) if (ok) return; + /* Sometimes we query EMRDY just as the EMRDY notifier is fired */ + if (data->flags & MBM_FLAG_SAW_EMRDY) + return; + /* On some MBM hardware the EMRDY cannot be queried, so if this fails * we try to run CFUN? to check the state. CFUN? will fail unless * EMRDY: 1 has been sent, in which case the emrdy_notifier should be |