diff options
author | 2011-11-19 13:23:32 +0100 | |
---|---|---|
committer | 2011-11-21 14:28:45 -0200 | |
commit | 48b28b8db9a74cc5c43e76485dc397e22bea2984 (patch) | |
tree | 1381e6eecede87f48603be76da5347d5d2245878 /lib/mpi/mpiutil.c | |
parent | Bluetooth: btmrvl: support Marvell Bluetooth device SD8797 (diff) | |
download | wireguard-linux-48b28b8db9a74cc5c43e76485dc397e22bea2984.tar.xz wireguard-linux-48b28b8db9a74cc5c43e76485dc397e22bea2984.zip |
Bluetooth: cmtp: Fix module reference
We cannot call module_put(THIS_MODULE) if this is our last reference. Otherwise,
this call may cleanup our module before it returns.
Gladly, the kthread API provides a simple wrapper for us. So lets use
module_put_and_exit() to avoid a race condition with the module cleanup code.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions