mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 08:36:47 +07:00
hostap: Fix outdated comment about dev->destructor
After commitcf124db566
("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:cf124db566
("net: Fix inconsistent teardown and release of private netdev state.") Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
d20d893d7a
commit
9ff067ff4c
@ -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 */
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user