Hi David, > 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@xxxxxxxxxxxxxx> > --- > net/bluetooth/cmtp/core.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) Acked-by: Marcel Holtmann <marcel@xxxxxxxxxxxx> Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html