[PORT FROM R2] atomisp: mt9e013: add lock protection to sensor's ioctl
authorDavid Cohen <david.a.cohen@intel.com>
Tue, 22 Nov 2011 16:39:39 +0000 (18:39 +0200)
committerbuildbot <buildbot@intel.com>
Mon, 19 Dec 2011 13:32:47 +0000 (05:32 -0800)
commitfa024e95a49ae674ec098fd7dac9535b2180b389
treec5d42e316c5c89e4ecaebf54e984c6e0b5b5a788
parentf13dd041adfdaf28a056750d682bf484c388ae00
[PORT FROM R2] atomisp: mt9e013: add lock protection to sensor's ioctl

BZ: 17272

Currently mt9e013 sensor lacks lock protection for concurrent ioctl
calls which may lead to racing condition.
This patch adds missing locks.

Change-Id: Ia0d3ca5156491a0cda169bedc7fe8731fffda5cc
Orig-Change-Id: I90f3cdca7c5b0cb7cf524244e8a4bf806d187223
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/24937
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28021
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
drivers/media/video/mt9e013.c
drivers/media/video/mt9e013.h