diff options
Diffstat (limited to 'net/phonet/af_phonet.c')
-rw-r--r-- | net/phonet/af_phonet.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c index 51397ff308bd..50dc258d5aa2 100644 --- a/net/phonet/af_phonet.c +++ b/net/phonet/af_phonet.c | |||
@@ -350,6 +350,7 @@ static int __init phonet_init(void) | |||
350 | phonet_device_init(); | 350 | phonet_device_init(); |
351 | dev_add_pack(&phonet_packet_type); | 351 | dev_add_pack(&phonet_packet_type); |
352 | phonet_netlink_register(); | 352 | phonet_netlink_register(); |
353 | phonet_sysctl_init(); | ||
353 | 354 | ||
354 | err = isi_register(); | 355 | err = isi_register(); |
355 | if (err) | 356 | if (err) |
@@ -357,6 +358,7 @@ static int __init phonet_init(void) | |||
357 | return 0; | 358 | return 0; |
358 | 359 | ||
359 | err: | 360 | err: |
361 | phonet_sysctl_exit(); | ||
360 | sock_unregister(AF_PHONET); | 362 | sock_unregister(AF_PHONET); |
361 | dev_remove_pack(&phonet_packet_type); | 363 | dev_remove_pack(&phonet_packet_type); |
362 | phonet_device_exit(); | 364 | phonet_device_exit(); |
@@ -366,6 +368,7 @@ err: | |||
366 | static void __exit phonet_exit(void) | 368 | static void __exit phonet_exit(void) |
367 | { | 369 | { |
368 | isi_unregister(); | 370 | isi_unregister(); |
371 | phonet_sysctl_exit(); | ||
369 | sock_unregister(AF_PHONET); | 372 | sock_unregister(AF_PHONET); |
370 | dev_remove_pack(&phonet_packet_type); | 373 | dev_remove_pack(&phonet_packet_type); |
371 | phonet_device_exit(); | 374 | phonet_device_exit(); |