diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2017-07-27 14:20:15 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-08-03 13:08:41 +0300 |
commit | 9ff067ff4c4a08d412e51307f11f7de3fb3045e7 (patch) | |
tree | 10ed31c9bd5f940a841d2a032f64c74c9c84356c /drivers/net/wireless/intersil/hostap/hostap_main.c | |
parent | d20d893d7a749662f21ff97894c3a496f9a5c991 (diff) | |
download | linux-9ff067ff4c4a08d412e51307f11f7de3fb3045e7.tar.xz |
hostap: Fix outdated comment about dev->destructor
After commit cf124db566e6 ("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: cf124db566e6 ("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>
Diffstat (limited to 'drivers/net/wireless/intersil/hostap/hostap_main.c')
-rw-r--r-- | drivers/net/wireless/intersil/hostap/hostap_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/intersil/hostap/hostap_main.c b/drivers/net/wireless/intersil/hostap/hostap_main.c index a3c066f90afc..012930d35434 100644 --- a/drivers/net/wireless/intersil/hostap/hostap_main.c +++ b/drivers/net/wireless/intersil/hostap/hostap_main.c @@ -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 */ } |