From: Marcel Holtmann <marcel@holtmann.org>
To: Szymon Janc <szymon.janc@tieto.com>
Cc: linux-bluetooth@vger.kernel.org,
par-gunnar.p.hjalmdahl@stericsson.com,
henrik.possung@stericsson.com
Subject: Re: [PATCH] Bluetooth: Fix unconditional call to mgmt interface in hci_event.c
Date: Wed, 06 Apr 2011 07:08:27 -0700 [thread overview]
Message-ID: <1302098907.2572.174.camel@aeonflux> (raw)
In-Reply-To: <1302087740-18244-1-git-send-email-szymon.janc@tieto.com>
Hi Szymon,
> hci_cc_read_local_oob_data_reply funtion should call
> mgmt_read_local_oob_data_reply_complete only if management interface
> is enabled.
>
> Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
> ---
> net/bluetooth/hci_event.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
> index 7a3398d..9062e1b 100644
> --- a/net/bluetooth/hci_event.c
> +++ b/net/bluetooth/hci_event.c
> @@ -831,7 +831,8 @@ static void hci_cc_read_local_oob_data_reply(struct hci_dev *hdev,
>
> BT_DBG("%s status 0x%x", hdev->name, rp->status);
>
please just exit the function if flag is not set:
if (!test_bit(...))
return
> - mgmt_read_local_oob_data_reply_complete(hdev->id, rp->hash,
> + if (test_bit(HCI_MGMT, &hdev->flags))
> + mgmt_read_local_oob_data_reply_complete(hdev->id, rp->hash,
> rp->randomizer, rp->status);
> }
>
Regards
Marcel
next prev parent reply other threads:[~2011-04-06 14:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 11:02 [PATCH] Bluetooth: Fix unconditional call to mgmt interface in hci_event.c Szymon Janc
2011-04-06 14:08 ` Marcel Holtmann [this message]
2011-04-07 6:26 ` Szymon Janc
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=1302098907.2572.174.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=henrik.possung@stericsson.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=par-gunnar.p.hjalmdahl@stericsson.com \
--cc=szymon.janc@tieto.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