• Russell King's avatar
    [DRIVER MODEL] Fix depca · 5d994b7f
    Russell King authored
    Release code in driver modules is a potential cause of oopsen.
    The device may be in use by a userspace process, which will keep
    a reference to the device.  If the module is unloaded, the module
    text will be freed.  Subsequently, when the last reference is
    dropped, the release code will be called, which no longer exists.
    
    Use generic platform device allocation/release code in modules.
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    5d994b7f
depca.c 60.6 KB