Commit ff4bf917 authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by John W. Linville

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: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ccb6c136
...@@ -2931,8 +2931,8 @@ static struct net_device *_init_airo_card( unsigned short irq, int port, ...@@ -2931,8 +2931,8 @@ static struct net_device *_init_airo_card( unsigned short irq, int port,
release_region( dev->base_addr, 64 ); release_region( dev->base_addr, 64 );
err_out_nets: err_out_nets:
airo_networks_free(ai); airo_networks_free(ai);
del_airo_dev(ai);
err_out_free: err_out_free:
del_airo_dev(ai);
free_netdev(dev); free_netdev(dev);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment