ath9k: set ah to null after freeing
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 3 Aug 2009 19:24:52 +0000 (12:24 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:44:32 +0000 (16:44 -0400)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c

index 6641fbedd6d0fc60d3acac68e5fa053d8188b3cb..633fe8b6f5f7feba3035c981fcaf25b27e2dcc5e 100644 (file)
@@ -1232,6 +1232,7 @@ void ath9k_hw_detach(struct ath_hw *ah)
        ath9k_hw_rf_free(ah);
        ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP);
        kfree(ah);
+       ah = NULL;
 }
 
 /*******/