Commit 89e40428 authored by Glenn Ruben Bakke's avatar Glenn Ruben Bakke Committed by Marcel Holtmann
Browse files

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: default avatarLukasz Duda <lukasz.duda@nordicsemi.no>
Signed-off-by: default avatarGlenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 2ad88fb2
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);
}