• Andrew Morton's avatar
    [PATCH] Bump module ref during init. · db378f4d
    Andrew Morton authored
    From: Rusty Russell <rusty@rustcorp.com.au>
    
    __module_get is theoretically allowed on module inside init, since we
    already hold an implicit reference.  Currently this BUG()s: make the
    reference count explicit, which also simplifies delete path.  Also cleans
    up unload path, such that it only drops semaphore when it's actually
    sleeping for rmmod --wait.
    db378f4d
module.c 40.9 KB