diff options
-rw-r--r-- | net/phonet/pn_dev.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index fd418107652b..3e24c0522ee3 100644 --- a/net/phonet/pn_dev.c +++ b/net/phonet/pn_dev.c | |||
@@ -204,13 +204,8 @@ void phonet_device_exit(void) | |||
204 | struct phonet_device *pnd, *n; | 204 | struct phonet_device *pnd, *n; |
205 | 205 | ||
206 | rtnl_unregister_all(PF_PHONET); | 206 | rtnl_unregister_all(PF_PHONET); |
207 | rtnl_lock(); | 207 | unregister_netdevice_notifier(&phonet_device_notifier); |
208 | spin_lock_bh(&pndevs.lock); | ||
209 | 208 | ||
210 | list_for_each_entry_safe(pnd, n, &pndevs.list, list) | 209 | list_for_each_entry_safe(pnd, n, &pndevs.list, list) |
211 | __phonet_device_free(pnd); | 210 | __phonet_device_free(pnd); |
212 | |||
213 | spin_unlock_bh(&pndevs.lock); | ||
214 | rtnl_unlock(); | ||
215 | unregister_netdevice_notifier(&phonet_device_notifier); | ||
216 | } | 211 | } |