提交 ff4bf917 编写于 作者: K Kulikov Vasiliy 提交者: 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: NKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 ccb6c136
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册