提交 9ff067ff 编写于 作者: S Stefano Brivio 提交者: Kalle Valo

hostap: Fix outdated comment about dev->destructor

After commit cf124db5 ("net: Fix inconsistent teardown and
release of private netdev state."), setting
'dev->needs_free_netdev' ensures device data is released, and
'dev->destructor' is not used anymore.

Fixes: cf124db5 ("net: Fix inconsistent teardown and release of private netdev state.")
Signed-off-by: NStefano Brivio <sbrivio@redhat.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 d20d893d
......@@ -125,8 +125,8 @@ void hostap_remove_interface(struct net_device *dev, int rtnl_locked,
else
unregister_netdev(dev);
/* dev->destructor = free_netdev() will free the device data, including
* private data, when removing the device */
/* 'dev->needs_free_netdev = true' implies device data, including
* private data, will be freed when the device is removed */
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册