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

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>

authored by

Glenn Ruben Bakke and committed by
Marcel Holtmann
89e40428 2ad88fb2

-2
-2
net/bluetooth/6lowpan.c
··· 1208 1208 1209 1209 list_del_rcu(&peer->list); 1210 1210 kfree_rcu(peer, rcu); 1211 - 1212 - module_put(THIS_MODULE); 1213 1211 } 1214 1212 spin_unlock(&devices_lock); 1215 1213 }