linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 3/4] Bluetooth: Initialize the SMP workqueue
Date: Mon, 22 Aug 2011 11:05:11 -0300	[thread overview]
Message-ID: <20110822140510.GA15726@piper> (raw)
In-Reply-To: <1313798415-8555-3-git-send-email-vinicius.gomes@openbossa.org>

On 21:00 Fri 19 Aug, Vinicius Costa Gomes wrote:
> The SMP workqueue is initialized along with the L2CAP module if the
> enable_smp parameter is enabled, and destroyed along the L2CAP module.
> 

The commit message is wrong. Please disconsider it, will fix it before
sending a new version.

> Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
> ---
>  net/bluetooth/l2cap_core.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
> index 00e93d1..3082a0e 100644
> --- a/net/bluetooth/l2cap_core.c
> +++ b/net/bluetooth/l2cap_core.c
> @@ -4293,6 +4293,10 @@ int __init l2cap_init(void)
>  	if (err < 0)
>  		return err;
>  
> +	err = smp_crypto_init();
> +	if (err < 0)
> +		BT_DBG("SMP Initialization falied");
> +
>  	err = hci_register_proto(&l2cap_hci_proto);
>  	if (err < 0) {
>  		BT_ERR("L2CAP protocol registration failed");
> @@ -4310,6 +4314,7 @@ int __init l2cap_init(void)
>  	return 0;
>  
>  error:
> +	smp_crypto_exit();
>  	l2cap_cleanup_sockets();
>  	return err;
>  }
> @@ -4318,6 +4323,8 @@ void l2cap_exit(void)
>  {
>  	debugfs_remove(l2cap_debugfs);
>  
> +	smp_crypto_exit();
> +
>  	if (hci_unregister_proto(&l2cap_hci_proto) < 0)
>  		BT_ERR("L2CAP protocol unregistration failed");
>  
> -- 
> 1.7.6
> 

Cheers,
-- 
Vinicius

  reply	other threads:[~2011-08-22 14:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-20  0:00 [PATCH 1/4] Bluetooth: Move SMP fields to a separate structure Vinicius Costa Gomes
2011-08-20  0:00 ` [PATCH 2/4] Bluetooth: Add functions to initialize the SMP workqueue Vinicius Costa Gomes
2011-09-02 17:58   ` Gustavo Padovan
2011-08-20  0:00 ` [PATCH 3/4] Bluetooth: Initialize " Vinicius Costa Gomes
2011-08-22 14:05   ` Vinicius Costa Gomes [this message]
2011-08-25 22:23   ` [PATCH] " Vinicius Costa Gomes
2011-08-20  0:00 ` [PATCH 4/4] Bluetooth: Move SMP crypto functions to a workqueue Vinicius Costa Gomes
2011-09-02 18:01 ` [PATCH 1/4] Bluetooth: Move SMP fields to a separate structure Gustavo Padovan

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=20110822140510.GA15726@piper \
    --to=vinicius.gomes@openbossa.org \
    --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;
as well as URLs for NNTP newsgroup(s).