mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Glenn Ruben Bakke <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
2ad88fb2c0
commit
89e4042861
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue