• Russell King's avatar
    [PCMCIA] Prevent class_device related oops. · dfd3ad98
    Russell King authored
    Although no such oops has been reported, removing a socket driver
    while a file under /sysfs/class/pcmcia_socket/pcmcia_socket* is
    held open by user space could potentially cause an oops.
    
    Plug this by preventing pcmcia_unregister_socket from returning
    until all references by sysfs to the pcmcia socket have been dropped.
    dfd3ad98
ss.h 6.51 KB