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 crash when unregistering a2dp driver before media driver
Date: Tue, 22 Mar 2011 12:36:53 +0200 [thread overview]
Message-ID: <20110322103653.GA28726@jh-x301> (raw)
In-Reply-To: <1300709926-32395-1-git-send-email-luiz.dentz@gmail.com>
Hi Luiz,
On Mon, Mar 21, 2011, Luiz Augusto von Dentz wrote:
> Since media driver uses a2dp to register its sep and store a pointer,
> this pointer may be invalid/freed when media driver is unregistered.
>
> To fix this now a2dp will also release any sep registered using media
> API.
>
> It also protect from future changes on the order of drivers removal by
> checking if pointers (sep or endpoint) are still available in the list
> before removing them.
> ---
> audio/a2dp.c | 7 +++++++
> audio/media.c | 3 +++
> 2 files changed, 10 insertions(+), 0 deletions(-)
Pushed upstream. Thanks.
Johan
prev parent reply other threads:[~2011-03-22 10:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 12:18 [PATCH] Fix crash when unregistering a2dp driver before media driver Luiz Augusto von Dentz
2011-03-22 10:36 ` Johan Hedberg [this message]
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=20110322103653.GA28726@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