Skip to content

Commit

Permalink
wireless: airo: delete netdev from list after it is freed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kulikov Vasiliy authored and John W. Linville committed Jul 14, 2010
1 parent ccb6c13 commit ff4bf91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2931,8 +2931,8 @@ static struct net_device *_init_airo_card( unsigned short irq, int port,
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;
}
Expand Down

0 comments on commit ff4bf91

Please sign in to comment.