]> git.hungrycats.org Git - linux/commit
[PCMCIA] Improve locking for memory resource probing.
authorRussell King <rmk@flint.arm.linux.org.uk>
Sat, 9 Oct 2004 00:48:34 +0000 (01:48 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sat, 9 Oct 2004 00:48:34 +0000 (01:48 +0100)
commit3c720f5bd5ed3cf58a3aa53a392531099890a296
tree8ed6dbb2fb9cb026a84e19d8bf1112691baef96e
parent52d9bf0bbee2a7ff0f52719f004dd211135b668f
[PCMCIA] Improve locking for memory resource probing.

- 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.
drivers/pcmcia/rsrc_mgr.c