From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: crash after SimManager.ResetPin()
Date: Fri, 23 Dec 2011 01:28:44 -0600 [thread overview]
Message-ID: <4EF42DAC.9080204@gmail.com> (raw)
In-Reply-To: <CAHiDW_FOzBG8vHfJ3M=wX8OxG1eMc6+-t+qdz2n9PyWr0C7f-A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
Hi Jussi,
On 12/23/2011 12:48 PM, Kukkonen, Jussi wrote:
> Hi all,
>
> I consistently get a crash when calling SimManager.ResetPin ("puk",
> puk, new_pin). Before this I've called ChangePin() with wrong pin
> three times.to get "PinRequired=puk" property change.
>
> This is a huawei E1550 USB modem.
>
Can you please try the following patch?
Regards,
-Denis
[-- Attachment #2: 0001-sim-Fix-not-creating-simfs-context-in-some-cases.patch --]
[-- Type: text/plain, Size: 1104 bytes --]
>From 764ab4017dec61006ee7936d41e4090d58110218 Mon Sep 17 00:00:00 2001
From: Denis Kenzior <denkenz@gmail.com>
Date: Fri, 23 Dec 2011 01:27:19 -0600
Subject: [PATCH] sim: Fix not creating simfs context in some cases
---
src/sim.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/sim.c b/src/sim.c
index dae824d..4412db8 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -1732,6 +1732,8 @@ static void sim_efphase_read_cb(int ok, int length, int record,
static void sim_initialize_after_pin(struct ofono_sim *sim)
{
+ sim->context = ofono_sim_context_create(sim);
+
ofono_sim_read(sim->context, SIM_EFPHASE_FILEID,
OFONO_SIM_FILE_STRUCTURE_TRANSPARENT,
sim_efphase_read_cb, sim);
@@ -1933,12 +1935,8 @@ skip_efpl:
&sim->language_prefs);
/* Proceed with sim initialization if we're not merely updating */
- if (!sim->language_prefs_update) {
- if (sim->context == NULL)
- sim->context = ofono_sim_context_create(sim);
-
+ if (!sim->language_prefs_update)
__ofono_sim_recheck_pin(sim);
- }
sim->language_prefs_update = FALSE;
}
--
1.7.3.4
next prev parent reply other threads:[~2011-12-23 7:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-23 18:48 crash after SimManager.ResetPin() Kukkonen, Jussi
2011-12-23 7:28 ` Denis Kenzior [this message]
2011-12-27 11:12 ` Kukkonen, Jussi
2011-12-27 0:04 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EF42DAC.9080204@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.