]> err.no Git - linux-2.6/commit
[PATCH] Video: fb, add true ref_count atomicity
authorJiri Slaby <jirislaby@gmail.com>
Mon, 12 Feb 2007 08:55:11 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:42 +0000 (09:48 -0800)
commitc4f28e54d61278203c2bb2aea0679e0a738235d2
treed92cf0718084a4e659444741443ee38afb847836
parent52e7c922f37907ab3cf3445b916fbbc53cbd6c75
[PATCH] Video: fb, add true ref_count atomicity

Some of fb drivers uses atomic_t in bad manner, since there are still some
race-prone gaps.  Use mutexes to protect open/close code sections with
ref_count testing and finally use simple uint.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Denis Oliver Kropp <dok@directfb.org>
Cc: James Simmons <jsimmons@infradead.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/i810/i810.h
drivers/video/i810/i810_main.c
drivers/video/neofb.c
drivers/video/riva/fbdev.c
drivers/video/riva/rivafb.h
drivers/video/vga16fb.c
include/video/neomagic.h