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