From: Szymon Janc <szymon.janc@tieto.com>
To: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/2] android/bluetooth: Set unpaired cb list to NULL while unregistering bt
Date: Wed, 03 Sep 2014 16:42:16 +0200 [thread overview]
Message-ID: <5343442.cWqiWZM8Bx@uw000953> (raw)
In-Reply-To: <1409750233-23314-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
Hi Grzegorz,
On Wednesday 03 of September 2014 15:17:12 Grzegorz Kolodziejczyk wrote:
> Unpaired callback list for profiles needs to be set to NULL while
> unregistering bluetooth. Other profiles may try to unregister and remove
> its unpair cb, this cause invalid read callback list.
> ---
> android/bluetooth.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/android/bluetooth.c b/android/bluetooth.c
> index 8b47015..d275dea 100644
> --- a/android/bluetooth.c
> +++ b/android/bluetooth.c
> @@ -5281,4 +5281,5 @@ void bt_bluetooth_unregister(void)
> hal_ipc = NULL;
>
> queue_destroy(unpaired_cb_list, NULL);
> + unpaired_cb_list = NULL;
> }
Both patches applied (after fixing typo in prefix of 2nd patch), thanks.
--
Best regards,
Szymon Janc
prev parent reply other threads:[~2014-09-03 14:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-03 13:17 [PATCH 1/2] android/bluetooth: Set unpaired cb list to NULL while unregistering bt Grzegorz Kolodziejczyk
2014-09-03 13:17 ` [PATCH 2/2] android/bluetoot: Minor style fix Grzegorz Kolodziejczyk
2014-09-03 14:42 ` Szymon Janc [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=5343442.cWqiWZM8Bx@uw000953 \
--to=szymon.janc@tieto.com \
--cc=grzegorz.kolodziejczyk@tieto.com \
--cc=linux-bluetooth@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox