]> git.karo-electronics.de Git - linux-beck.git/commit
[media] m5mols: Protect driver data with a mutex
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 20 Sep 2012 11:16:45 +0000 (08:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 23:59:36 +0000 (20:59 -0300)
commit5565a2ad47cdd8e697a28137bd8379455667bc1c
treed4d7f322962faa8edd99f3f18f135cd7ebf4efe2
parent05fb4da441c9197a59d537cf7f88522716287c61
[media] m5mols: Protect driver data with a mutex

Without the locking the driver's data could get corrupted when the subdev
is accessed from user space and from host driver by multiple processes.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/m5mols/m5mols.h
drivers/media/i2c/m5mols/m5mols_core.c