On Fri, 2013-06-14 at 14:15 +0200, Simon Wunderlich wrote: > +static struct cfg80211_beacon_data * > +cfg80211_beacon_dup(struct cfg80211_beacon_data *beacon) > +{ > + struct cfg80211_beacon_data *new_beacon; > + new_beacon = kzalloc(sizeof(*new_beacon), GFP_KERNEL); > + if (!beacon) > + return NULL; Why not allocate one bigger block and use pointers into it? There's no (reasonable) way that it'd get really big ... johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html