Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: Added /proc/net/sco via bt_procfs_init()

Added /proc/net/sco via bt_procfs_init().

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>

authored by

Masatake YAMATO and committed by
Gustavo Padovan
de9b9212 c6f5df16

+9
+9
net/bluetooth/sco.c
··· 1023 1023 goto error; 1024 1024 } 1025 1025 1026 + err = bt_procfs_init(THIS_MODULE, &init_net, "sco", &sco_sk_list, NULL); 1027 + if (err < 0) { 1028 + BT_ERR("Failed to create SCO proc file"); 1029 + bt_sock_unregister(BTPROTO_SCO); 1030 + goto error; 1031 + } 1032 + 1026 1033 if (bt_debugfs) { 1027 1034 sco_debugfs = debugfs_create_file("sco", 0444, bt_debugfs, 1028 1035 NULL, &sco_debugfs_fops); ··· 1048 1041 1049 1042 void __exit sco_exit(void) 1050 1043 { 1044 + bt_procfs_cleanup(&init_net, "sco"); 1045 + 1051 1046 debugfs_remove(sco_debugfs); 1052 1047 1053 1048 if (bt_sock_unregister(BTPROTO_SCO) < 0)