From: Kulikov Vasiliy Date: Tue, 13 Jul 2010 11:23:33 +0000 (+0400) Subject: wireless: airo: delete netdev from list after it is freed X-Git-Tag: firefly_0821_release~9833^2~1306^2~107^2~35 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ff4bf917cd4d355f23eea5812a11be5711dcfb8c;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: John W. Linville --- 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; }