From: Guennadi Liakhovetski Date: Wed, 9 Jan 2013 12:14:48 +0000 (-0300) Subject: [media] soc-camera: protect against racing open(2) and rmmod X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~81^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2400a1f89d329ad8948c08e6e08fef33ce42f73b;p=pandora-kernel.git [media] soc-camera: protect against racing open(2) and rmmod To protect against open() racing with rmmod, hold the list_lock also while obtaining a reference to the camera host driver and check that the video device hasn't been unregistered yet. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed