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>
Loading
Please register or sign in to comment