From: Jiri Benc <jbenc@suse.cz>
To: netdev@vger.kernel.org
Subject: [PATCH 1/4] d80211: better deallocation of mdev
Date: Mon, 3 Jul 2006 19:24:07 +0200 (CEST) [thread overview]
Message-ID: <20060703172407.BD04B483BC@silver.suse.cz> (raw)
In-Reply-To: <20060703192335.935001000.midnight@suse.cz>
Master device and ieee80211_local are allocated separately now, so master
device can be freed by the same function as other virtual interfaces.
Signed-off-by: Jiri Benc <jbenc@suse.cz>
---
net/d80211/ieee80211.c | 2 +-
net/d80211/ieee80211_iface.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
de609aa3e039b91ebebbec45d4bddd1134a71948
diff --git a/net/d80211/ieee80211.c b/net/d80211/ieee80211.c
index f1e42d4..fe1003b 100644
--- a/net/d80211/ieee80211.c
+++ b/net/d80211/ieee80211.c
@@ -4536,7 +4536,7 @@ void ieee80211_free_hw(struct net_device
{
struct ieee80211_local *local = dev->ieee80211_ptr;
- free_netdev(dev);
+ ieee80211_if_free(dev);
ieee80211_dev_free(local);
}
diff --git a/net/d80211/ieee80211_iface.c b/net/d80211/ieee80211_iface.c
index 5abd713..566bb36 100644
--- a/net/d80211/ieee80211_iface.c
+++ b/net/d80211/ieee80211_iface.c
@@ -337,7 +337,8 @@ void ieee80211_if_free(struct net_device
{
struct ieee80211_local *local = dev->ieee80211_ptr;
- BUG_ON(dev == local->mdev || dev == local->apdev);
+ /* local->apdev must be NULL when freeing management interface */
+ BUG_ON(dev == local->apdev);
free_netdev(dev);
}
--
1.3.0
next prev parent reply other threads:[~2006-07-03 17:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-03 17:24 [PATCH 0/4] d80211: fix receiving Jiri Benc
2006-07-03 17:24 ` Jiri Benc [this message]
2006-07-03 17:24 ` [PATCH 2/4] d80211: fix receiving through virtual interfaces Jiri Benc
2006-07-04 18:05 ` Jiri Benc
2006-07-03 17:24 ` [PATCH 3/4] d80211: fix defragmentation Jiri Benc
2006-07-03 17:24 ` [PATCH 4/4] d80211: optimize defragmentation Jiri Benc
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=20060703172407.BD04B483BC@silver.suse.cz \
--to=jbenc@suse.cz \
--cc=netdev@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