OSDN Git Service

msm: camera: isp: Avoid stats data corruption.
authorRamesh V <ramev@codeaurora.org>
Mon, 4 Sep 2017 11:50:15 +0000 (17:20 +0530)
committerRamesh V <ramev@codeaurora.org>
Tue, 12 Sep 2017 04:51:26 +0000 (10:21 +0530)
commitb9c2cd1f65ef86c3db96ab13bca0a7e94c255344
tree4bd9b2dbb80a85f71893488b24ccb121ab2ba810
parente91bfdb17610ab3e8ae912a2844ba9e5be2afe87
msm: camera: isp: Avoid stats data corruption.

When several threads permanently, e.g., read/write the debugfs
file that triggers vfe_debugfs_statistics_read(), the content of
stats will be modified in an unintended manner, add spin_lock
to protect that.

Change-Id: I15d46498e669132ef1d1f5ad9c4305ee5fdb0da4
Signed-off-by: Ramesh V <ramev@codeaurora.org>
drivers/media/platform/msm/camera_v2/isp/msm_isp.c