From: Johan Hedberg <johan.hedberg@gmail.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Fix using invalid data from previous headset connection
Date: Wed, 3 Mar 2010 00:32:33 -0300 [thread overview]
Message-ID: <20100303033233.GA20411@jh-x301> (raw)
In-Reply-To: <2d5a2c101003021309o34b63249ub5940f67112eab6a@mail.gmail.com>
Hi Luiz,
On Tue, Mar 02, 2010, Luiz Augusto von Dentz wrote:
> Data notiated in a session should be reset once disconnected, to fix
> this a new structure is introduced called headset_session is
> introduced to hold the session data which is freed when disconnected.
In general the idea of the patch is good, but there are a few things
that need some further thinking.
First of all could we just call a "session" what the HFP spec calls it,
i.e. a Service Level Connection, e.g. hs->slc? Or do you have some
better suggestion?
Secondly you need to be careful when doing one-to-one replacements of
existing hs->foo statements with hs->session->foo statements. What if
hs->session is NULL? Are there some valid use cases when a function that
can access hs->session could get called while hs->session is NULL?
Johan
next prev parent reply other threads:[~2010-03-03 3:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-02 21:09 [PATCH] Fix using invalid data from previous headset connection Luiz Augusto von Dentz
2010-03-03 3:32 ` Johan Hedberg [this message]
2010-03-03 8:25 ` Luiz Augusto von Dentz
2010-03-04 3:50 ` Johan Hedberg
2010-03-04 8:32 ` Luiz Augusto von Dentz
2010-03-04 14:29 ` Luiz Augusto von Dentz
2010-03-04 20:25 ` Johan Hedberg
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=20100303033233.GA20411@jh-x301 \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox