From: Hans Verkuil Date: Fri, 26 Nov 2010 09:54:53 +0000 (-0300) Subject: [media] v4l2-dev: fix race condition X-Git-Tag: v2.6.37-rc7~22^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca9afe6f87b569cdf8e797395381f18ae23a2905;p=pandora-kernel.git [media] v4l2-dev: fix race condition The unregister function had a race condition with the v4l2_open function. Ensure that both functions test and clear the REGISTER flag from within a critical section. Thanks to Laurent Pinchart for finding this race. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed