summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hidp
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2021-12-03 18:00:19 +0100
committerEric W. Biederman <ebiederm@xmission.com>2021-12-13 19:04:45 +0100
commitca3574bd653aba234a4b31955f2778947403be16 (patch)
tree4f09c349161cc13113e99bfaac240122222b5de1 /net/bluetooth/hidp
parentexit: Implement kthread_exit (diff)
downloadlinux-ca3574bd653aba234a4b31955f2778947403be16.tar.xz
linux-ca3574bd653aba234a4b31955f2778947403be16.zip
exit: Rename module_put_and_exit to module_put_and_kthread_exit
Update module_put_and_exit to call kthread_exit instead of do_exit. Change the name to reflect this change in functionality. All of the users of module_put_and_exit are causing the current kthread to exit so this change makes it clear what is happening. There is no functional change. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'net/bluetooth/hidp')
-rw-r--r--net/bluetooth/hidp/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index 80848dfc01db..5940744a8cd8 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -1305,7 +1305,7 @@ static int hidp_session_thread(void *arg)
l2cap_unregister_user(session->conn, &session->user);
hidp_session_put(session);
- module_put_and_exit(0);
+ module_put_and_kthread_exit(0);
return 0;
}