From: David Herrmann Date: Sat, 19 Nov 2011 12:23:33 +0000 (+0100) Subject: Bluetooth: bnep: Fix module reference X-Git-Tag: v3.2-rc6~3^2~4^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b338c3dd12918f7f7df2b882f63f71e9efbcb41;p=pandora-kernel.git 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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed