From: Stefan Schmidt <stefan@osg.samsung.com>
To: Koen Zandberg <koen@bergzand.net>, linux-wpan@vger.kernel.org
Subject: Re: [PATCH bluetooth-next] Fixes kernel oops when unloading the radio module
Date: Thu, 4 Feb 2016 15:55:27 +0100 [thread overview]
Message-ID: <56B3665F.4070503@osg.samsung.com> (raw)
In-Reply-To: <1454448364-22417-1-git-send-email-koen@bergzand.net>
Hello.
Please add a mac802154 as prefix to your subject line to make clear
where the patch belongs to.
On 02/02/16 22:26, Koen Zandberg wrote:
> Destroying the workqueue before unregistering the net device caused a
> kernel oops
>
> Signed-off-by: Koen Zandberg <koen@bergzand.net>
> ---
> net/mac802154/main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/mac802154/main.c b/net/mac802154/main.c
> index e8cab5b..87da85a 100644
> --- a/net/mac802154/main.c
> +++ b/net/mac802154/main.c
> @@ -218,7 +218,6 @@ void ieee802154_unregister_hw(struct ieee802154_hw *hw)
>
> tasklet_kill(&local->tasklet);
> flush_workqueue(local->workqueue);
> - destroy_workqueue(local->workqueue);
>
> rtnl_lock();
>
> @@ -226,6 +225,7 @@ void ieee802154_unregister_hw(struct ieee802154_hw *hw)
>
> rtnl_unlock();
>
> + destroy_workqueue(local->workqueue);
> wpan_phy_unregister(local->phy);
When I look at the cleanup part of ieee802154_register_hw() we call
these two in a different order. Should we do the same here or can we be
sure that these two are orthogonal and the order do not matter here.
regards
Stefan Schmidt
next prev parent reply other threads:[~2016-02-04 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-02 21:26 [PATCH bluetooth-next] Fixes kernel oops when unloading the radio module Koen Zandberg
2016-02-04 14:55 ` Stefan Schmidt [this message]
2016-02-10 10:03 ` Koen Zandberg
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=56B3665F.4070503@osg.samsung.com \
--to=stefan@osg.samsung.com \
--cc=koen@bergzand.net \
--cc=linux-wpan@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.