The patch titled iwlwifi3945/4965: fix rate control algo reference leak has been added to the -mm tree. Its filename is iwlwifi3945-4965-fix-rate-control-algo-reference-leak.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: iwlwifi3945/4965: fix rate control algo reference leak From: Cyrill Gorcunov <gorcunov@xxxxxxxxx> Fix rate control algo reference leak in case if network device has been failed to register. In this case special flag priv->mac80211_registered is not set and the rate algo reference is not freeing on module unload. That leads to OOPs in further ieee80211 rate register/unregister procedure (by any callee). It should fix the bug #9470 http://bugzilla.kernel.org/show_bug.cgi?id=9470 Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxx> Acked-by: Zhu Yi <yi.zhu@xxxxxxxxx> Cc: "John W. Linville" <linville@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/net/wireless/iwlwifi/iwl3945-base.c | 1 + drivers/net/wireless/iwlwifi/iwl4965-base.c | 1 + 2 files changed, 2 insertions(+) diff -puN drivers/net/wireless/iwlwifi/iwl3945-base.c~iwlwifi3945-4965-fix-rate-control-algo-reference-leak drivers/net/wireless/iwlwifi/iwl3945-base.c --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c~iwlwifi3945-4965-fix-rate-control-algo-reference-leak +++ a/drivers/net/wireless/iwlwifi/iwl3945-base.c @@ -6280,6 +6280,7 @@ static void iwl3945_alive_start(struct i mutex_lock(&priv->mutex); if (rc) { + iwl_rate_control_unregister(priv->hw); IWL_ERROR("Failed to register network " "device (error %d)\n", rc); return; diff -puN drivers/net/wireless/iwlwifi/iwl4965-base.c~iwlwifi3945-4965-fix-rate-control-algo-reference-leak drivers/net/wireless/iwlwifi/iwl4965-base.c --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c~iwlwifi3945-4965-fix-rate-control-algo-reference-leak +++ a/drivers/net/wireless/iwlwifi/iwl4965-base.c @@ -6693,6 +6693,7 @@ static void iwl4965_alive_start(struct i mutex_lock(&priv->mutex); if (rc) { + iwl_rate_control_unregister(priv->hw); IWL_ERROR("Failed to register network " "device (error %d)\n", rc); return; _ Patches currently in -mm which might be from gorcunov@xxxxxxxxx are git-powerpc.patch ppc-fix-missed-increment-on-device-interface-counter.patch ppc-chrp-fix-possible-null-pointer-dereference.patch ppc-chrp-fix-possible-null-pointer-dereference-checkpatch-fixes.patch net-mac80211-fix-inappropriate-memory-freeing.patch git-x86.patch ieee80211_rate-missed-unlock.patch iwlwifi3945-4965-fix-rate-control-algo-reference-leak.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html