]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
media video cx23888 driver: ported to new kfifo API
authorStefani Seibold <stefani@seibold.net>
Mon, 21 Dec 2009 22:37:33 +0000 (14:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Dec 2009 22:17:57 +0000 (14:17 -0800)
commit7801edb0b8b66e83c13623b483bc2e846c007c9d
treee536d39689ca4e25145aeeb84abf7335162c34c8
parent86d4880313603810901f639ccb5c88ff13d4ad3c
media video cx23888 driver: ported to new kfifo API

Fix the cx23888 driver to use the new kfifo API.  Using kfifo_reset()
may result in a possible race conditions.  This patch fixes it by using
a spinlock around the kfifo_reset() function.

Signed-off-by: Stefani Seibold <stefani@seibold.net>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Reviewed-by: Andy Walls <awalls@radix.net>
Acked-by: Andy Walls <awalls@radix.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/video/cx23885/cx23888-ir.c