All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] d80211: fix incorrect hw.priv setting in ieee80211_alloc_hw()
@ 2007-02-17  7:42 Pavel Roskin
  2007-02-17 10:16 ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Pavel Roskin @ 2007-02-17  7:42 UTC (permalink / raw)
  To: linux-wireless

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;


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-19 14:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-17  7:42 [PATCH] d80211: fix incorrect hw.priv setting in ieee80211_alloc_hw() Pavel Roskin
2007-02-17 10:16 ` 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

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.