Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6.git] / drivers / net / wireless / iwmc3200wifi / netdev.c
index e94e969..092d28a 100644 (file)
@@ -156,10 +156,10 @@ void iwm_if_free(struct iwm_priv *iwm)
                return;
 
        free_netdev(iwm_to_ndev(iwm));
-       iwm_wdev_free(iwm);
        iwm_priv_deinit(iwm);
        kfree(iwm->umac_profile);
        iwm->umac_profile = NULL;
+       iwm_wdev_free(iwm);
 }
 
 int iwm_if_add(struct iwm_priv *iwm)