From: Pavel Roskin <proski@gnu.org>
To: linux-wireless@vger.kernel.org
Subject: [PATCH] d80211: fix incorrect hw.priv setting in ieee80211_alloc_hw()
Date: Sat, 17 Feb 2007 02:42:08 -0500 [thread overview]
Message-ID: <20070217074208.348.69546.stgit@dv.roinet.com> (raw)
hw.priv is set twice, and the second time it's set incorrectly to an
area relative to the master device, which wasn't allocated for private
data.
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
net/d80211/ieee80211.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/net/d80211/ieee80211.c b/net/d80211/ieee80211.c
index 456beb3..4f77e27 100644
--- a/net/d80211/ieee80211.c
+++ b/net/d80211/ieee80211.c
@@ -4550,9 +4550,6 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
mdev->ieee80211_ptr = &sdata->wdev;
sdata->wdev.wiphy = wiphy;
- local->hw.priv = (char *)mdev->priv +
- ((sizeof(struct ieee80211_sub_if_data) +
- NETDEV_ALIGN_CONST) & ~NETDEV_ALIGN_CONST);
local->hw.queues = 1; /* default */
local->mdev = mdev;
next reply other threads:[~2007-02-17 7:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-17 7:42 Pavel Roskin [this message]
2007-02-17 10:16 ` [PATCH] d80211: fix incorrect hw.priv setting in ieee80211_alloc_hw() Johannes Berg
2007-02-18 21:54 ` Pavel Roskin
2007-02-19 6:33 ` Johannes Berg
2007-02-19 13:43 ` Pavel Roskin
2007-02-19 14:18 ` Johannes Berg
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=20070217074208.348.69546.stgit@dv.roinet.com \
--to=proski@gnu.org \
--cc=linux-wireless@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.