From 99c96781a20e81e3736ed2252fe64a4b7218ca3a Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Thu, 26 Jul 2012 01:30:12 +0900 Subject: [PATCH] --- yaml --- r: 327484 b: refs/heads/master c: de9b9212c7fd3e87608194f1c73fc06cd6cc7dfb h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/bluetooth/sco.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index dea920184bef..e824a286545f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c6f5df16a2710e64090078dfbaa86c54a27c0874 +refs/heads/master: de9b9212c7fd3e87608194f1c73fc06cd6cc7dfb diff --git a/trunk/net/bluetooth/sco.c b/trunk/net/bluetooth/sco.c index 0ef5a78a889f..caa109df6452 100644 --- a/trunk/net/bluetooth/sco.c +++ b/trunk/net/bluetooth/sco.c @@ -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); @@ -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)