summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/airo.c
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-07-13 15:23:33 +0400
committerJohn W. Linville <linville@tuxdriver.com>2010-07-14 21:52:45 +0400
commitff4bf917cd4d355f23eea5812a11be5711dcfb8c (patch)
tree66f37ac9ec87b1df0ed9273c4c14062448ea845a /drivers/net/wireless/airo.c
parentccb6c1360f8dd43303c659db718e7e0b24175db5 (diff)
downloadlinux-ff4bf917cd4d355f23eea5812a11be5711dcfb8c.tar.xz
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.c2
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;
}