]> err.no Git - linux-2.6/commit
iwlwifi3945/4965: fix rate control algo reference leak
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 13 Dec 2007 23:52:12 +0000 (15:52 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 17 Dec 2007 22:01:39 +0000 (17:01 -0500)
commita5acc379e52c78db407c73537daff387b179202c
treeb200c48c9f4d6e07c3126ea38b2589be19ca153d
parentb808ab16a9c99c00e3d8c3b351977fce62781dd0
iwlwifi3945/4965: fix rate control algo reference leak

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

[akpm@linux-foundation.org: build fix]
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Acked-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c