]> err.no Git - linux-2.6/commit
iwlwifi: fix rfkill memory error
authorMohamed Abbas <mabbas@linux.intel.com>
Thu, 3 Apr 2008 23:05:24 +0000 (16:05 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Apr 2008 20:44:42 +0000 (16:44 -0400)
commit03d29c684917860f90f897565b297c4aba713e0b
treee2084248721b540fcaa468b4c0c2d2961e03c6b8
parentfe00b5a5b7e29180e427e58b3d0a185d1dd3f105
iwlwifi: fix rfkill memory error

Do not free reference to device twice. After rfkill registration succeeds
we only need to call rfkill_unregister() and not rfkill_free().
Also add some debugging.

Signed-off-by: Mohamed Abbas <mabbas@linux.intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-rfkill.c
drivers/net/wireless/iwlwifi/iwl-rfkill.h