diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-13 13:23:33 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-14 19:52:45 +0200 |
commit | ff4bf917cd4d355f23eea5812a11be5711dcfb8c (patch) | |
tree | 66f37ac9ec87b1df0ed9273c4c14062448ea845a /drivers/net/wireless/airo.c | |
parent | cfg80211: don't get expired BSSes (diff) | |
download | linux-ff4bf917cd4d355f23eea5812a11be5711dcfb8c.tar.xz linux-ff4bf917cd4d355f23eea5812a11be5711dcfb8c.zip |
wireless: airo: delete netdev from list after it is freed
We must call del_airo_dev() before free_netdev() since we call
add_airo_dev() exactly after alloc_netdev().
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r-- | drivers/net/wireless/airo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 528d56375623..053f90c7aa1b 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c @@ -2931,8 +2931,8 @@ err_out_res: release_region( dev->base_addr, 64 ); err_out_nets: airo_networks_free(ai); - del_airo_dev(ai); err_out_free: + del_airo_dev(ai); free_netdev(dev); return NULL; } |