commit | eb2e99b56236836f51ebacd9a606296df1bff76c | [log] [tgz] |
---|---|---|
author | Lokesh Kumar Aakulu <lkumar@codeaurora.org> | Mon Apr 21 17:53:54 2014 +0530 |
committer | Lokesh Kumar Aakulu <lkumar@codeaurora.org> | Mon Apr 21 19:40:52 2014 +0530 |
tree | b2c32b614d73acd0d775c607056a74dd4a31a9c6 | |
parent | ee7ebc4bdafce838b1dce8174773d379f52b6e86 [diff] |
msm: camera: Avoid memory corruption by changing order of enum SET_POSITION is added above MOVE_FOCUS which makes kernel prone to memory corruption as MOVE_FOCUS enum is changed. when CFG_POSITION is not present and userspace calls MOVE_FOCUS kernel misinterprets MOVE_FOCUS as SET_POSITION and thus copies user structure to wrong structure and makes memory to corrupt. Change-Id: I335ee28d9af6ec25b00262d71701e503a06e21c5 Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>