]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Char: sx, lock boards struct
authorJiri Slaby <jirislaby@gmail.com>
Fri, 8 Dec 2006 10:39:03 +0000 (02:39 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:28:58 +0000 (08:28 -0800)
commit42f6384fe4747f65dc27e8a5f96502204558203b
tree2426f001057d213fa89b0c2b790ddb93e4faa707
parent927a6f9dd0d0b5f70cb2e0799ce7a3844f43d42f
[PATCH] Char: sx, lock boards struct

Fix race condition which may occurs when multiple cards are probed at the same
time.  Add mutex to critical sections to avoid this situation.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/sx.c