From: Varka Bhadram <varkabhadram@gmail.com>
To: Alexander Aring <alex.aring@gmail.com>, linux-wpan@vger.kernel.org
Cc: kernel@pengutronix.de
Subject: Re: [PATCH bluetooth-next] mac802154: fix ieee802154_register_hw error handling
Date: Mon, 13 Apr 2015 14:55:02 +0530 [thread overview]
Message-ID: <552B8B6E.5060909@gmail.com> (raw)
In-Reply-To: <1428916139-18593-1-git-send-email-alex.aring@gmail.com>
On 04/13/2015 02:38 PM, Alexander Aring wrote:
> Currently if ieee802154_if_add failed, we don't unregister the wpan phy
> which was registrated before. This patch adds a correct error handling
s/registrated/registered
> for unregister the wpan phy when ieee802154_if_add failed.
>
> Signed-off-by: Alexander Aring <alex.aring@gmail.com>
> ---
> net/mac802154/main.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/net/mac802154/main.c b/net/mac802154/main.c
> index 8500378..beece7b 100644
> --- a/net/mac802154/main.c
> +++ b/net/mac802154/main.c
> @@ -166,13 +166,15 @@ int ieee802154_register_hw(struct ieee802154_hw *hw)
> if (IS_ERR(dev)) {
> rtnl_unlock();
> rc = PTR_ERR(dev);
> - goto out_wq;
> + goto out_phy;
> }
>
> rtnl_unlock();
>
> return 0;
>
> +out_phy:
> + wpan_phy_unregister(local->phy);
> out_wq:
> destroy_workqueue(local->workqueue);
> out:
--
Thanks,
Varka Bhadram.
prev parent reply other threads:[~2015-04-13 9:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-13 9:08 [PATCH bluetooth-next] mac802154: fix ieee802154_register_hw error handling Alexander Aring
2015-04-13 9:25 ` Varka Bhadram [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=552B8B6E.5060909@gmail.com \
--to=varkabhadram@gmail.com \
--cc=alex.aring@gmail.com \
--cc=kernel@pengutronix.de \
--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.