From: Tomasz Moń Date: Fri, 8 Jun 2012 07:47:34 +0000 (-0300) Subject: [media] v4l: mem2mem_testdev: Fix race conditions in driver X-Git-Tag: v3.5-rc5~26^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f4161a6b8796dc41dc3924d7869622f7975706a;p=pandora-kernel.git [media] v4l: mem2mem_testdev: Fix race conditions in driver The mem2mem_testdev allows multiple instances to be opened in parallel. Source and destination queue data are being shared between all instances, which can lead to kernel oops due to race conditions (most likely to happen inside device_run()). Attached patch fixes mentioned problem by storing queue data per device context. Signed-off-by: Tomasz Moń Signed-off-by: Marek Szyprowski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed