linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gustavo Padovan <padovan@profusion.mobi>
To: David Herrmann <dh.herrmann@googlemail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 2/2] Bluetooth: bnep: Fix module reference
Date: Mon, 21 Nov 2011 14:30:03 -0200	[thread overview]
Message-ID: <20111121163003.GH2552@joana> (raw)
In-Reply-To: <1321705413-2598-2-git-send-email-dh.herrmann@googlemail.com>

Hi David,

* David Herrmann <dh.herrmann@googlemail.com> [2011-11-19 13:23:33 +0100]:

> We cannot call module_put(THIS_MODULE) if this is our last reference. Otherwise,
> this call may cleanup our module before it returns.
> 
> Gladly, the kthread API provides a simple wrapper for us. So lets use
> module_put_and_exit() to avoid a race condition with the module cleanup code.
> 
> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
> ---
>  net/bluetooth/bnep/core.c |    8 +++-----
>  1 files changed, 3 insertions(+), 5 deletions(-)

Both patches have been applied, thanks.

	Gustavo

  parent reply	other threads:[~2011-11-21 16:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-19 12:23 [PATCH 1/2] Bluetooth: cmtp: Fix module reference David Herrmann
2011-11-19 12:23 ` [PATCH 2/2] Bluetooth: bnep: " David Herrmann
2011-11-19 12:54   ` Marcel Holtmann
2011-11-21 16:30   ` Gustavo Padovan [this message]
2011-11-19 12:53 ` [PATCH 1/2] Bluetooth: cmtp: " Marcel Holtmann

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=20111121163003.GH2552@joana \
    --to=padovan@profusion.mobi \
    --cc=dh.herrmann@googlemail.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;
as well as URLs for NNTP newsgroup(s).