summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/6lowpan.c
diff options
context:
space:
mode:
authorGlenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>2015-06-17 16:32:27 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-06-17 19:17:58 +0200
commit89e4042861772a89fc54ce517255c3a38ba58ac1 (patch)
tree7932f99b3c88675951d8107ef874463f13cfb5bd /net/bluetooth/6lowpan.c
parentBluetooth: 6lowpan: Fix double kfree of netdev priv (diff)
downloadlinux-89e4042861772a89fc54ce517255c3a38ba58ac1.tar.xz
linux-89e4042861772a89fc54ce517255c3a38ba58ac1.zip
Bluetooth: 6lowpan: Fix module refcount
This patch removes the additional module_put() in disconnect_all_peers() making a correct module refcount so that the module can be removed after disabling 6lowpan through debugfs. Signed-off-by: Lukasz Duda <lukasz.duda@nordicsemi.no> Signed-off-by: Glenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r--net/bluetooth/6lowpan.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index 071f9eb3805d..2fb7b3064904 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -1208,8 +1208,6 @@ static void disconnect_all_peers(void)
list_del_rcu(&peer->list);
kfree_rcu(peer, rcu);
-
- module_put(THIS_MODULE);
}
spin_unlock(&devices_lock);
}