From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH v2 2/4] sim: query remaining pin retries
Date: Tue, 04 Jan 2011 11:29:37 -0600 [thread overview]
Message-ID: <4D235901.60808@gmail.com> (raw)
In-Reply-To: <AANLkTimmSTmbY-GyBPa_hisU7E59_6S9r+ZP5JE9wLY3@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 912 bytes --]
Hi Lucas,
On 01/04/2011 11:26 AM, Lucas De Marchi wrote:
> Hi Denis,
>
> On Tue, Jan 4, 2011 at 3:13 PM, Denis Kenzior <denkenz@gmail.com> wrote:
>> Hi Lucas,
>>
>> On 01/04/2011 07:06 AM, Lucas De Marchi wrote:
>>> @@ -62,6 +62,8 @@ struct ofono_sim {
>>> enum ofono_sim_password_type pin_type;
>>> gboolean locked_pins[OFONO_SIM_PASSWORD_SIM_PUK]; /* Number of PINs */
>>>
>>> + GSList *pin_retries;
>>> +
>>
>> Are you forgetting to free the pin_retries array when the sim is removed
>> or the sim atom is destroyed?
>>
>
> Yes, I forgot. Since I cannot have G* types on headers, I'll store a
> ofono_sim_pin_retry **retries here and convert the code so the list
> will not be necessary. Is this ok?
Should be fine. See how it works out. Just remember that the drivers
are free to return arrays on the stack, so you cannot assume ownership.
Regards,
-Denis
next prev parent reply other threads:[~2011-01-04 17:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 13:06 [PATCH v2 0/4] Query retry counters Lucas De Marchi
2011-01-04 13:06 ` [PATCH v2 1/4] include: add method to query pin Retries Lucas De Marchi
2011-01-04 17:11 ` Denis Kenzior
2011-01-04 13:06 ` [PATCH v2 2/4] sim: query remaining pin retries Lucas De Marchi
2011-01-04 17:13 ` Denis Kenzior
2011-01-04 17:26 ` Lucas De Marchi
2011-01-04 17:29 ` Denis Kenzior [this message]
2011-01-04 13:06 ` [PATCH v2 3/4] doc: detail Retries property Lucas De Marchi
2011-01-04 13:06 ` [PATCH v2 4/4] atmodem: implement query for remaining pin retries Lucas De Marchi
2011-01-04 13:20 ` [PATCH v2 0/4] Query retry counters Sankar
2011-01-04 14:24 ` Lucas De Marchi
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=4D235901.60808@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.