Fixes the segfault I just pointed out. Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> --- net/wireless/reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- everything.orig/net/wireless/reg.c 2008-12-01 11:59:18.000000000 +0100 +++ everything/net/wireless/reg.c 2008-12-01 11:59:30.000000000 +0100 @@ -1330,7 +1330,7 @@ int set_regdom(const struct ieee80211_re /* Caller must hold cfg80211_drv_mutex */ void reg_device_remove(struct wiphy *wiphy) { - if (!last_request->wiphy) + if (!last_request || !last_request->wiphy) return; if (last_request->wiphy != wiphy) return; -- 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