On Fri, 2011-10-28 at 11:00 +0100, David Kilroy wrote: > The pointer returned by cfg80211_inform_bss is a referenced > struct. The orinoco driver does not need to keep the struct, so > we just release it. Thanks! > + cbss = cfg80211_inform_bss(wiphy, channel, bss->a.bssid, timestamp, > + capability, beacon_interval, ie_buf, ie_len, > + signal, GFP_KERNEL); > + if (cbss) > + cfg80211_put_bss(cbss); Obviously doesn't hurt, but cfg80211_put_bss(NULL) is acceptable, if you'd prefer the code that way. 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