Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327484
b: refs/heads/master
c: de9b921
h: refs/heads/master
v: v3
  • Loading branch information
Masatake YAMATO authored and Gustavo Padovan committed Aug 6, 2012
1 parent 0d76b9a commit 99c9678
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6f5df16a2710e64090078dfbaa86c54a27c0874
refs/heads/master: de9b9212c7fd3e87608194f1c73fc06cd6cc7dfb
9 changes: 9 additions & 0 deletions trunk/net/bluetooth/sco.c
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,13 @@ int __init sco_init(void)
goto error;
}

err = bt_procfs_init(THIS_MODULE, &init_net, "sco", &sco_sk_list, NULL);
if (err < 0) {
BT_ERR("Failed to create SCO proc file");
bt_sock_unregister(BTPROTO_SCO);
goto error;
}

if (bt_debugfs) {
sco_debugfs = debugfs_create_file("sco", 0444, bt_debugfs,
NULL, &sco_debugfs_fops);
Expand All @@ -1041,6 +1048,8 @@ int __init sco_init(void)

void __exit sco_exit(void)
{
bt_procfs_cleanup(&init_net, "sco");

debugfs_remove(sco_debugfs);

if (bt_sock_unregister(BTPROTO_SCO) < 0)
Expand Down

0 comments on commit 99c9678

Please sign in to comment.