diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-13 07:23:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-14 13:52:45 -0400 |
commit | ff4bf917cd4d355f23eea5812a11be5711dcfb8c (patch) | |
tree | 66f37ac9ec87b1df0ed9273c4c14062448ea845a | |
parent | ccb6c1360f8dd43303c659db718e7e0b24175db5 (diff) |
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>
-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: | |||
2931 | release_region( dev->base_addr, 64 ); | 2931 | release_region( dev->base_addr, 64 ); |
2932 | err_out_nets: | 2932 | err_out_nets: |
2933 | airo_networks_free(ai); | 2933 | airo_networks_free(ai); |
2934 | del_airo_dev(ai); | ||
2935 | err_out_free: | 2934 | err_out_free: |
2935 | del_airo_dev(ai); | ||
2936 | free_netdev(dev); | 2936 | free_netdev(dev); |
2937 | return NULL; | 2937 | return NULL; |
2938 | } | 2938 | } |