The code allocates an array of struct nlattr, but it seems to me that it should
allocate an array of pointers.
Signed-off-by: Marcus Better <[EMAIL PROTECTED]>
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -843,7 +843,7 @@ static int nl80211_initiate_scan(struct sk_buff *skb,
struct genl_info *info)
channels = kmalloc(count * sizeof(struct scan_channel),
GFP_KERNEL);
- tb = kmalloc((NL80211_ATTR_MAX+1) * sizeof(struct nlattr),
+ tb = kmalloc((NL80211_ATTR_MAX+1) * sizeof(struct nlattr *),
GFP_KERNEL);
count = 0;
--
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html