summaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-11-19 13:23:33 +0100
committerGustavo F. Padovan <padovan@profusion.mobi>2011-11-21 17:29:25 +0100
commit9b338c3dd12918f7f7df2b882f63f71e9efbcb41 (patch)
tree21c1476a90ad3214a2ffc6cdfbc94941e64bf427 /fs/9p
parentBluetooth: cmtp: Fix module reference (diff)
downloadlinux-9b338c3dd12918f7f7df2b882f63f71e9efbcb41.tar.xz
linux-9b338c3dd12918f7f7df2b882f63f71e9efbcb41.zip
Bluetooth: bnep: 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 'fs/9p')
0 files changed, 0 insertions, 0 deletions