]> git.baikalelectronics.ru Git - kernel.git/commit
[media] V4L: soc-camera: protect hosts during probing from overzealous user-space
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 18 Apr 2012 09:43:09 +0000 (06:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 26 Apr 2012 14:30:12 +0000 (11:30 -0300)
commitb130251fa5c67a91fef95f702d1736ee221504b7
tree99bc40ffdac05c88f97eb5e49afe01c2a85440a9
parent46d86b4fe152da3999e8f603dd18e50b17c429f5
[media] V4L: soc-camera: protect hosts during probing from overzealous user-space

If multiple clients are registered on a single camera host interface,
the user-space hot-plug software can try to access the one, that probed
first, before probing of the second one has completed. This can be
handled by individual host drivers, but it is even better to hold back
the user-space until all the probing on this host has completed. This
fixes a race on ecovec with two clients registered on the CEU1 host, which
otherwise triggers a BUG() in sh_mobile_ceu_remove_device().

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera.c
include/media/soc_camera.h