• Russell King's avatar
    [PCMCIA] Improve locking for memory resource probing. · 3c720f5b
    Russell King authored
    - Pass a mask of the regions we wish to be probed to validate_mem
    - Only take s->skt_sem if we need to probe resources on a socket
    
    This prevents a deadlock reported by Adam Belay caused by ds.c waiting
    with the socket semaphore held for userspace to respond.  Meanwhile,
    userspace may under some rare circumstances issue a request to read
    tuples from the card, which tries to take the socket semaphore again.
    3c720f5b
rsrc_mgr.c 24.1 KB