From: Robin Holt <holt@sgi.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: John Linville <linville@tuxdriver.com>, Robin Holt <holt@sgi.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] mac80211: fix debugfs netdev rename
Date: Wed, 8 Oct 2008 04:57:53 -0500 [thread overview]
Message-ID: <20081008095753.GO8534@sgi.com> (raw)
In-Reply-To: <1223453916.3618.34.camel@johannes.berg>
That looks like it is probably it!
Thanks,
Robin
On Wed, Oct 08, 2008 at 10:18:36AM +0200, Johannes Berg wrote:
> If, for some reason, a netdev has no debugfs dir, we shouldn't
> try to rename that dir.
>
> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
> Cc: Robin Holt <holt@sgi.com>
> ---
> Robin, ok, I was wrong, this might be causing it...
>
> net/mac80211/debugfs_netdev.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> --- everything.orig/net/mac80211/debugfs_netdev.c 2008-10-08 10:08:23.000000000 +0200
> +++ everything/net/mac80211/debugfs_netdev.c 2008-10-08 10:08:37.000000000 +0200
> @@ -481,8 +481,12 @@ static int netdev_notify(struct notifier
>
> sdata = IEEE80211_DEV_TO_SUB_IF(dev);
>
> - sprintf(buf, "netdev:%s", dev->name);
> dir = sdata->debugfsdir;
> +
> + if (!dir)
> + return 0;
> +
> + sprintf(buf, "netdev:%s", dev->name);
> if (!debugfs_rename(dir->d_parent, dir, dir->d_parent, buf))
> printk(KERN_ERR "mac80211: debugfs: failed to rename debugfs "
> "dir to %s\n", buf);
>
prev parent reply other threads:[~2008-10-08 9:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 8:18 [PATCH] mac80211: fix debugfs netdev rename Johannes Berg
2008-10-08 9:57 ` Robin Holt [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=20081008095753.GO8534@sgi.com \
--to=holt@sgi.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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;
as well as URLs for NNTP newsgroup(s).